Constructs a new ESPBaseError
.
A label representing the error type.
A key corresponding to a specific error message from the provided error messages object.
An object mapping error codes to their corresponding error messages.
A default message if the code is not found in the error messages.
Optional
causeThe specific error code associated with the error.
A label to classify the error type.
Optional
stackStatic
Optional
prepareOptional override for formatting stack traces
Static
stack
Base class for creating custom errors.