Interface of the exception constructor.
Creates an Exception. For internal use only! Please use the factory methods, to create an Exception!
The type name, the default is UNKNOWN.
UNKNOWN
Optional
The associated message.
The cause of this exception.
Factory method for Exceptions of type 'ILLEGAL_ARGUMENT_ERROR'
Factory method for Exceptions of type 'ILLEGAL_STATE_ERROR'
Factory method for Exceptions of type 'NOT_IMPLEMENTED'
Factory method for Exceptions of type 'UNKNOWN'
Wraps errors into Exceptions to get correct stacktraces.
the error
the error message
import Exception from "apprt-core/Exception";try { // code with throws an error} catch(e) { // wrap into exception class to get stacktraces throw Exception.wrap(e);} Copy
import Exception from "apprt-core/Exception";try { // code with throws an error} catch(e) { // wrap into exception class to get stacktraces throw Exception.wrap(e);}
Interface of the exception constructor.