docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Error

    Schema to an API call when returning a status, title, and details about an error.

    Inheritance
    object
    Error
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.Services.Apis.Friends
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class Error

    Constructors

    Error(int, string, string, List<Detail>, int, string, string)

    Initializes a new instance of the Error class.

    Declaration
    [Preserve]
    public Error(int status = 0, string title = null, string detail = null, List<Detail> details = null, int code = 0, string type = null, string requestID = null)
    Parameters
    Type Name Description
    int status

    Indicates the HTTP status code of the response. (required).

    string title

    Title of the response. (required).

    string detail

    Details about the response. (required).

    List<Detail> details

    Array with details about all the internal validation errors with information including unique validation error code number and validation error message..

    int code

    An integer in the range of 24000-24999 (required).

    string type

    The type of error (required).

    string requestID

    A unique ID for this request (required).

    Properties

    Code

    An integer in the range of 24000-24999

    Declaration
    [Preserve]
    public int Code { get; set; }
    Property Value
    Type Description
    int

    An integer in the range of 24000-24999

    Detail

    Details about the response.

    Declaration
    [Preserve]
    public string Detail { get; set; }
    Property Value
    Type Description
    string

    Details about the response.

    Details

    Array with details about all the internal validation errors with information including unique validation error code number and validation error message.

    Declaration
    [Preserve]
    public List<Detail> Details { get; set; }
    Property Value
    Type Description
    List<Detail>

    Array with details about all the internal validation errors with information including unique validation error code number and validation error message.

    RequestID

    A unique ID for this request

    Declaration
    [Preserve]
    public string RequestID { get; set; }
    Property Value
    Type Description
    string

    A unique ID for this request

    Status

    Indicates the HTTP status code of the response.

    Declaration
    [Preserve]
    public int Status { get; set; }
    Property Value
    Type Description
    int

    Indicates the HTTP status code of the response.

    Title

    Title of the response.

    Declaration
    [Preserve]
    public string Title { get; set; }
    Property Value
    Type Description
    string

    Title of the response.

    Type

    The type of error

    Declaration
    [Preserve]
    public string Type { get; set; }
    Property Value
    Type Description
    string

    The type of error

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)