public class JSError extends JSObject
JSObject.jsexport, JSObject.Property<T>
JSPropertyAttributeDontDelete, JSPropertyAttributeDontEnum, JSPropertyAttributeNone, JSPropertyAttributeReadOnly
Constructor and Description |
---|
JSError(JSContext ctx)
Generates a JavaScript throwable exception object
|
JSError(JSContext ctx,
java.lang.String message)
Generates a JavaScript throwable exception object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
message()
JavaScript error message, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/message
|
java.lang.String |
name()
JavaScript error name, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/name
|
java.lang.String |
stack()
JavaScript error stack trace, see:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/Stack
|
__nullFunc, deleteProperty, getThis, hashCode, hasProperty, isConstructor, isFunction, property, property, property, propertyAtIndex, propertyAtIndex, propertyNames, prototype, prototype
equals, getContext, isArray, isBoolean, isDate, isEqual, isFloat32Array, isFloat64Array, isInstanceOfConstructor, isInt16Array, isInt32Array, isInt8Array, isNull, isNumber, isObject, isStrictEqual, isString, isTypedArray, isUint16Array, isUint32Array, isUint8Array, isUint8ClampedArray, isUndefined, toBoolean, toFunction, toJSArray, toJSON, toNumber, toObject, toString, valueHash
public JSError(JSContext ctx, @NonNull java.lang.String message)
ctx
- The context in which to create the errormessage
- The description of the errorpublic JSError(JSContext ctx)
ctx
- The context in which to create the errorpublic java.lang.String stack()
public java.lang.String message()
public java.lang.String name()