LuckyException class

Base exception class for all Lucky Dart HTTP errors.

Thrown by Connector.send when a request fails. Use subclasses for specific HTTP status codes: NotFoundException (404), UnauthorizedException (401), ValidationException (422).

Implemented types
Implementers

Constructors

LuckyException(String message, {int? statusCode, LuckyResponse? response})
Creates a LuckyException with the given message and optional statusCode and response.

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
The human-readable error message.
final
response LuckyResponse?
The LuckyResponse that triggered this exception, if available.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The HTTP status code associated with this error, if available.
final

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