Overview | Module | Use | Devguide | Index

Constants | Constants' Details

:: com :: sun :: star :: script ::
constants group FailReason
Description These values specify the reason why a type conversion failed.

Constants
OUT_OF_RANGE | The given value does not fit in the range of the destination type.
IS_NOT_NUMBER | The given value cannot be converted to a number.
IS_NOT_ENUM | The given value cannot be converted to an enumeration.
IS_NOT_BOOL | The given value cannot be converted to a boolean.
NO_SUCH_INTERFACE | The given value is not an interface or cannot queried to the right interface.
SOURCE_IS_NO_DERIVED_TYPE | The given value cannot be converted to right structure or exception type.
TYPE_NOT_SUPPORTED | The type class of the given value is not supported.
INVALID | The given value cannot be converted and none of the other reasons match.
NO_DEFAULT_AVAILABLE | [ DEPRECATED ] This value is deprecated. Do not use.
UNKNOWN | [ DEPRECATED ] This value is deprecated. Do not use.

Constants' Details
OUT_OF_RANGE
const long OUT_OF_RANGE = 1; Description The given value does not fit in the range of the destination type.
IS_NOT_NUMBER
const long IS_NOT_NUMBER = 2; Description The given value cannot be converted to a number.
IS_NOT_ENUM
const long IS_NOT_ENUM = 3; Description The given value cannot be converted to an enumeration.
IS_NOT_BOOL
const long IS_NOT_BOOL = 4; Description The given value cannot be converted to a boolean.
NO_SUCH_INTERFACE
const long NO_SUCH_INTERFACE = 5; Description The given value is not an interface or cannot queried to the right interface.
SOURCE_IS_NO_DERIVED_TYPE
const long SOURCE_IS_NO_DERIVED_TYPE = 6; Description The given value cannot be converted to right structure or exception type.
TYPE_NOT_SUPPORTED
const long TYPE_NOT_SUPPORTED = 7; Description The type class of the given value is not supported.
INVALID
const long INVALID = 8; Description The given value cannot be converted and none of the other reasons match.
NO_DEFAULT_AVAILABLE
const long NO_DEFAULT_AVAILABLE = 9; [ DEPRECATED ] Description This value is deprecated. Do not use.
UNKNOWN
const long UNKNOWN = 10; [ DEPRECATED ] Description This value is deprecated. Do not use.

Top of Page

Copyright © 2003 Sun Microsystems, Inc.