Creates an Exception. For internal use only! Please use the factory methods, to create an Exception!
The type name, the default is UNKNOWN
.
Optional
message: stringThe associated message.
Optional
cause: Error | ExceptionThe cause of this exception.
Wraps errors into Exceptions to get correct stacktraces.
the error
Optional
msg: stringthe 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);
}
Wraps errors into Exceptions to get correct stacktraces.
the error message
Generated using TypeDoc
Interface of the exception constructor.