StatusException class final

Exception thrown when an API method fails with a Status indicating an error.

You can find out more about this error model and how to work with it in the API Design Guide.

Inheritance

Constructors

StatusException.fromStatus(Status status, {required int statusCode, String? responseBody})

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
A message describing the cause of the exception.
finalinherited
responseBody String?
The server response that caused the exception.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status → Status
The status message returned by the server.
final
statusCode int
The HTTP status code that the server returned (e.g. 404).
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