API / CLASS REFERENCE
UltralightResult
Inherits: RefCounted
Explicit success value or structured failure.
Inspect ok before reading value or error. Successful null has a Nil value; JavaScript undefined uses UltralightUndefined. Errors are not printed implicitly by the new evaluation APIs.
Properties
Methods
okbool
Whether this result is successful.
Default: — · Accessors: is_ok() · Read-only
valueVariant
Converted success value. Nil is a valid successful null.
Default: — · Accessors: get_value() · Read-only
errorUltralightError
Structured failure when ok is false; null on success.
Default: — · Accessors: get_error() · Read-only
is_ok
is_ok() → bool constReturn ok.
get_value
get_value() → Variant constReturn value.
get_error
get_error() → UltralightError constReturn error.