docs.unity3d.com
    Show / Hide Table of Contents

    Class RequestFailedException

    A base exception type for failed requests.

    Inheritance
    Object
    Exception
    RequestFailedException
    Namespace: Unity.Services.Core
    Syntax
    public class RequestFailedException : Exception, ISerializable, _Exception

    Constructors

    RequestFailedException(Int32, String)

    Creates an exception.

    Declaration
    public RequestFailedException(int errorCode, string message)
    Parameters
    Type Name Description
    Int32 errorCode

    The error code returned by the service.

    String message

    A message describing the error.

    Remarks

    The exception message is typically the "detail" field from the error response returned by the service when it is available.

    The error code is the "code" field from the error response returned by the service when it is available. See CommonErrorCodes for common error codes.

    RequestFailedException(Int32, String, Exception)

    Creates an exception.

    Declaration
    public RequestFailedException(int errorCode, string message, Exception innerException)
    Parameters
    Type Name Description
    Int32 errorCode

    The error code returned by the service.

    String message

    A message describing the error.

    Exception innerException

    The inner exception reference.

    Remarks

    The exception message is typically the "detail" field from the error response returned by the service when it is available.

    The error code is the "code" field from the error response returned by the service when it is available. See CommonErrorCodes for common error codes.

    Properties

    ErrorCode

    Gets the error code for the failure.

    Declaration
    public int ErrorCode { get; }
    Property Value
    Type Description
    Int32
    Remarks

    See CommonErrorCodes for common error codes. Consult the service documentation for specific error codes various APIs can return.

    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023