TokenException class
Exception thrown when token operations fail
- Inheritance
-
- Object
- FhirAuthException
- TokenException
Constructors
- TokenException(String message, {String? details, int? statusCode, Object? innerException, StackTrace? stackTrace, bool isExpired = false})
-
Creates an exception for a token operation failure;
isExpiredflags that the failure was specifically due to an expired token.const
Properties
- details → String?
-
Additional details for debugging (not shown to end users)
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- innerException → Object?
-
Original exception that caused this error
finalinherited
- isExpired → bool
-
Whether the token is expired
final
- message → String
-
User-friendly error message
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace → StackTrace?
-
Stack trace for debugging
finalinherited
- statusCode → int?
-
HTTP status code if applicable
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
sanitized(
) → FhirAuthException -
Creates a sanitized version safe for user display
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited