Creates an instance of ESPTokenError.
The error code corresponding to a specific token-related error message
from tokenErrorMessages.
OptionalcauseThe specific error code associated with the error.
A label to classify the error type.
OptionalstackStatic OptionalprepareOptional override for formatting stack traces
Staticstack
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
ESPBaseErrorto provide a structured and consistent error-handling mechanism.