AuthenticationException class

Exception thrown for authentication errors (401, 403)

Inheritance

Constructors

AuthenticationException.new(String message, int statusCode, String body, {Map<String, String>? headers, Map<String, dynamic>? errorData, dynamic stackTrace})
Constructor
AuthenticationException.fromResponse(Response response)
Factory constructor to create from HTTP response
factory

Properties

body String
Raw response body
finalinherited
errorData Map<String, dynamic>?
Parsed error data if available
finalinherited
hashCode int
The hash code for this object.
no setterinherited
headers Map<String, String>?
Response headers
finalinherited
message String
The error message
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → dynamic
Optional stack trace
finalinherited
statusCode int
HTTP status code
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited