CustomError class

Customize service error responses. For example, list any service specific protobuf types that can appear in error detail lists of error responses.

Example:

custom_error:
  types:
  - google.foo.v1.CustomError
  - google.foo.v1.AnotherError

Constructors

CustomError()
CustomError.fromJson(Map _json)

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
rules List<CustomErrorRule>
The list of custom error rules that apply to individual API messages. [...]
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
types List<String>
The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
read / write

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, Object>
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited