docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ValidationErrorResponse

    Validation error response when a value provided from the client does notpass validation on server.

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

    Constructors

    ValidationErrorResponse(string, string, int, int, string, string, List<ValidationError>)

    Initializes a new instance of the ValidationErrorResponse class.

    Declaration
    [Preserve]
    public ValidationErrorResponse(string type = null, string title = null, int status = 0, int code = 0, string detail = null, string instance = null, List<ValidationError> errors = null)
    Parameters
    Type Name Description
    string type

    A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank". (required).

    string title

    A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4). (required).

    int status

    The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. (required).

    int code

    Service specific error code. Codes include: - 27000: Deletion of the specified leaderboard is in progress at the time of the request - 27001: Score submission required to view the scores of this leaderboard - 27002: Unknown error while retrieving leaderboard player names - 27003: Leaderboard entry creation is already in progress - 27004: Leaderboard entry creation is still in progress - 27005: Leaderboard could not be found - 27006: Leaderboard could not be found - 27007: Leaderboard bucket could not be found - 27008: Leaderboard tier could not be found - 27009: Leaderboard entry could not be found - 27010: Leaderboard version could not be found - 27011: Leaderboard already exists with the provided ID - 27012: Leaderboard does not have buckets - 27013: Leaderboard has buckets - 27014: Leaderboard is not tiered (required).

    string detail

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

    string instance

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced..

    List<ValidationError> errors

    Array of validation error objects enumerating the invalid fields and their reasons (required).

    Properties

    Code

    Service specific error code. Codes include: - 27000: Deletion of the specified leaderboard is in progress at the time of the request - 27001: Score submission required to view the scores of this leaderboard - 27002: Unknown error while retrieving leaderboard player names - 27003: Leaderboard entry creation is already in progress - 27004: Leaderboard entry creation is still in progress - 27005: Leaderboard could not be found - 27006: Leaderboard could not be found - 27007: Leaderboard bucket could not be found - 27008: Leaderboard tier could not be found - 27009: Leaderboard entry could not be found - 27010: Leaderboard version could not be found - 27011: Leaderboard already exists with the provided ID - 27012: Leaderboard does not have buckets - 27013: Leaderboard has buckets - 27014: Leaderboard is not tiered

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

    Service specific error code. Codes include: - 27000: Deletion of the specified leaderboard is in progress at the time of the request - 27001: Score submission required to view the scores of this leaderboard - 27002: Unknown error while retrieving leaderboard player names - 27003: Leaderboard entry creation is already in progress - 27004: Leaderboard entry creation is still in progress - 27005: Leaderboard could not be found - 27006: Leaderboard could not be found - 27007: Leaderboard bucket could not be found - 27008: Leaderboard tier could not be found - 27009: Leaderboard entry could not be found - 27010: Leaderboard version could not be found - 27011: Leaderboard already exists with the provided ID - 27012: Leaderboard does not have buckets - 27013: Leaderboard has buckets - 27014: Leaderboard is not tiered

    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.

    Errors

    Array of validation error objects enumerating the invalid fields and their reasons

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

    Array of validation error objects enumerating the invalid fields and their reasons

    Instance

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

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

    A URI reference that identifies the specific occurrence of the problem. It may or may not yield further information if dereferenced.

    Status

    The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

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

    The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem.

    Title

    A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).

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

    A short, human-readable summary of the problem type. It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).

    Type

    A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".

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

    A URI reference [RFC3986] that identifies the problem type. This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]). When this member is not present, its value is assumed to be "about:blank".

    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)