discontinuedPackage google_cloud_gax has been discontinued.

ServiceException class final

Exception thrown when calling an API through ServiceClient fails.

Implemented types

Constructors

ServiceException(String message, {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.
final
responseBody → String?
The server response that caused the exception.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
statusCode → int
The HTTP status code that the server returned (e.g. 404).
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