Class CustomError
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
Implements
Inherited Members
Namespace: Google.Apis.ServiceUsage.v1beta1.Data
Assembly: Google.Apis.ServiceUsage.v1beta1.dll
Syntax
public class CustomError : IDirectResponseSchema
Properties
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Rules
The list of custom error rules that apply to individual API messages. NOTE: All service configuration rules follow "last one wins" order.
Declaration
[JsonProperty("rules")]
public virtual IList<CustomErrorRule> Rules { get; set; }
Property Value
Type | Description |
---|---|
IList<CustomErrorRule> |
Types
The list of custom error detail types, e.g. 'google.foo.v1.CustomError'.
Declaration
[JsonProperty("types")]
public virtual IList<string> Types { get; set; }
Property Value
Type | Description |
---|---|
IList<string> |