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

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

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited