CustomErrorResponse 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
-
CustomErrorResponse({required Input<
List< rules, required Input<CustomErrorRuleResponse> >List< types})String> > -
Creates a new CustomErrorResponse.
rulesThe list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow "last one wins" order.typesThe list of custom error detail types, e.g. 'google.foo.v1.CustomError'.const -
CustomErrorResponse.fromMap(Map<
String, dynamic> map) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rules
→ Input<
List< CustomErrorRuleResponse> > -
The list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow "last one wins" order.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
types
→ Input<
List< String> > -
The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited