Class AxiosInvocationErrorResponse
An invocation error from the execution backend in an axios request. Describes the error and provides details about the request and response. Most common cause is an unhandled error from one of the Cloud Code SDKs for other Unity services (ex. Cloud Save).
Inherited Members
Namespace: Unity.Services.Apis.CloudCode
Assembly: Unity.Services.Apis.dll
Syntax
[DataContract(Name = "AxiosInvocationErrorResponse")]
[Preserve]
public class AxiosInvocationErrorResponse
Constructors
AxiosInvocationErrorResponse(string, string, int, int, string, string, List<AxiosInvocationErrorResponseDetails>)
Initializes a new instance of the AxiosInvocationErrorResponse class.
Declaration
[Preserve]
public AxiosInvocationErrorResponse(string type = "problems/invocation", string title = null, int status = 0, int code = 0, string detail = "Invocation Error", string instance = null, List<AxiosInvocationErrorResponseDetails> details = null)
Parameters
| Type | Name | Description |
|---|---|---|
| string | type | type (required) (default to "problems/invocation"). |
| string | title | title (required). |
| int | status | status (required). |
| int | code | code (required). |
| string | detail | detail (required) (default to "Invocation Error"). |
| string | instance | instance. |
| List<AxiosInvocationErrorResponseDetails> | details | details (required). |
Properties
Code
Gets or Sets Code
Declaration
[DataMember(Name = "code", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Code { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Detail
Gets or Sets Detail
Declaration
[DataMember(Name = "detail", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Detail { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Details
Gets or Sets Details
Declaration
[DataMember(Name = "details", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public List<AxiosInvocationErrorResponseDetails> Details { get; set; }
Property Value
| Type | Description |
|---|---|
| List<AxiosInvocationErrorResponseDetails> |
Instance
Gets or Sets Instance
Declaration
[DataMember(Name = "instance", EmitDefaultValue = true)]
[Preserve]
public string Instance { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Status
Gets or Sets Status
Declaration
[DataMember(Name = "status", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public int Status { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
Title
Gets or Sets Title
Declaration
[DataMember(Name = "title", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Title { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Type
Gets or Sets Type
Declaration
[DataMember(Name = "type", IsRequired = true, EmitDefaultValue = true)]
[Preserve]
public string Type { get; set; }
Property Value
| Type | Description |
|---|---|
| string |