Show / Hide Table of Contents

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

Inheritance
System.Object
CustomError
Implements
IDirectResponseSchema
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Google.Apis.ServiceUsage.v1.Data
Assembly: Google.Apis.ServiceUsage.v1.dll
Syntax
public class CustomError : IDirectResponseSchema

Properties

ETag

The ETag of the item.

Declaration
public virtual string ETag { get; set; }
Property Value
Type Description
System.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
System.Collections.Generic.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
System.Collections.Generic.IList<System.String>

Implements

IDirectResponseSchema
In This Article
Back to top