Error Management

GB_ERR_ARG 'Bad argument' error
GB_ERR_BOUND 'Out of bounds' error
GB_ERR_NSYMBOL 'Unknown symbol' error
GB_ERR_NPROPERTY 'Not a property' error
GB_ERR_TYPE 'Type mismatch' error
GB.Error Signals an error.
GB.Propagate Propagates an error.

Overview

When you have to abort a native method or property, and raise an error, just call the GB.Error function.

Be careful! Then you must return explicitly from the function.

There are some predefined error constants: those whose name begins with GB_ERR_.