NetworkException class final

Thrown by the cURL flow when the HTTP request fails — e.g. due to a connection timeout, a non-2xx status code, or a response that is too large.

Inheritance

Constructors

NetworkException({required String message, String? hint, int? statusCode, String? responseBody})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
hint String?
Optional one-line hint shown below the error (e.g. "Run 'dart pub get'").
finalinherited
message String
Human-readable description of the failure.
finalinherited
responseBody String?
The response body returned by the server.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The HTTP status code returned by the server, if any.
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