Class JavaError

An error thrown from the java process. This error may contain the java throwable that caused this error. The cause is only available in synchronous calls.

Hierarchy

  • Error
    • JavaError

Constructors

  • Parameters

    • Optional message: string

    Returns JavaError

  • Parameters

    • Optional message: string
    • Optional options: ErrorOptions

    Returns JavaError

Properties

The throwable that caused this error. This is only available in synchronous calls or if the JavaConfig.asyncJavaExceptionObjects option is true.

message: string
name: string
stack?: string
prepareStackTrace?: ((err, stackTraces) => any)

Optional override for formatting stack traces

Type declaration

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc