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.
OptionalcauseThe specific error code associated with the error.
A label to classify the error type.
OptionalstackStatic OptionalprepareOptional override for formatting stack traces
Staticstack
Base class for creating custom errors.