InvalidTokenFormat
This class is a custom exception used to indicate that a token does not conform to the expected format. It captures a specific reason for the failure to provide detailed error context during token validation.
Attributes
| Attribute | Type | Description |
|---|---|---|
| reason | string | A string or message describing the specific formatting error that caused the token validation to fail. |
Constructor
Signature
def InvalidTokenFormat(
reason: string
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| reason | string | The specific reason or detail explaining why the token format is considered invalid. |
Signature
def InvalidTokenFormat(
reason: string
) - > null
Parameters
| Name | Type | Description |
|---|---|---|
| reason | string | A descriptive string explaining why the token format was considered invalid, such as a missing header or incorrect encoding. |