docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ErrorStatus

    The body that is returned for any failing request. We are using the RFC 7807 Error Format.

    Inheritance
    object
    ErrorStatus
    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.PlayerNames
    Assembly: solution.dll
    Syntax
    [Preserve]
    public class ErrorStatus

    Constructors

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

    Initializes a new instance of the ErrorStatus class.

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

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

    string title

    A short, human-readable summary of the problem type. It does not change between occurrences of the problem, except for purposes of localization. (required).

    string detail

    A human-readable explanation specific to this occurrence of the problem. (required).

    int code

    An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error. (required).

    List<Detail> details

    A list of additional details about specific errors..

    Properties

    Code

    An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error.

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

    An integer that uniquely identifies an error type. This can be used to programmatically identify the type of error.

    Detail

    A human-readable explanation specific to this occurrence of the problem.

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

    A human-readable explanation specific to this occurrence of the problem.

    Details

    A list of additional details about specific errors.

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

    A list of additional details about specific errors.

    Status

    The HTTP status code of the response.

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

    The HTTP status code of the response.

    Title

    A short, human-readable summary of the problem type. It does not change between occurrences of the problem, except for purposes of localization.

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

    A short, human-readable summary of the problem type. It does not change between occurrences of the problem, except for purposes of localization.

    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)