is_valid


Description:

public bool is_valid () throws Error

If the given handle type is valid, return true.

If not, set error and return false.

Parameters:

type

A handle type, valid or not, to be checked

Returns:

true if the handle type is valid.