CommentsApiException class

Exception thrown when the backend answers with an error payload.

Implemented types
Annotations
  • @Deprecated('Use CommentsAuthException from CommentsKit instead.')

Constructors

CommentsApiException(int statusCode, String message, {String? humanMessage, String? requestId, Object? details})
Builds an exception with the HTTP status code and a stable error code.

Properties

details → Object?
Additional information returned by the backend when available.
final
hashCode → int
The hash code for this object.
no setterinherited
humanMessage → String?
Optional human-readable message returned by the backend.
final
message → String
Machine-readable error message (for example invalid_token_response).
final
requestId → String?
Optional correlation id returned by the backend.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
HTTP status code returned by the API.
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