NrbHttpException class

A custom exception thrown when an HTTP request fails within the NRB network client.

NrbHttpException captures both the status code and the response body from the server, allowing for granular error handling and debugging.

Implemented types

Constructors

NrbHttpException(int statusCode, String body)
Creates an NrbHttpException with the given statusCode and body.

Properties

body String
The raw response body sent by the server, often containing error details.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The HTTP status code returned by the server (e.g., 404, 500).
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