Creates an instance of ESPTokenError
.
The error code corresponding to a specific token-related error message
from tokenErrorMessages
.
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
Represents an error related to authentication tokens.
This class is used to handle errors that occur during token-related operations, such as missing or invalid tokens. It extends
ESPBaseError
to provide a structured and consistent error-handling mechanism.