Skip to main content

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

AttributeTypeDescription
reasonstringA string or message describing the specific formatting error that caused the token validation to fail.

Constructor

Signature

def InvalidTokenFormat(
reason: string
) - > null

Parameters

NameTypeDescription
reasonstringThe specific reason or detail explaining why the token format is considered invalid.

Signature

def InvalidTokenFormat(
reason: string
) - > null

Parameters

NameTypeDescription
reasonstringA descriptive string explaining why the token format was considered invalid, such as a missing header or incorrect encoding.