docs.unity3d.com
    Show / Hide Table of Contents

    Class RelayServiceException

    Represents an exception that occurs when communicating with the Unity Relay Service.

    Inheritance
    Object
    Exception
    RequestFailedException
    RelayServiceException
    Inherited Members
    RequestFailedException.ErrorCode
    Exception.GetBaseException()
    Exception.ToString()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.MemberwiseClone()
    Namespace: Unity.Services.Relay
    Syntax
    public class RelayServiceException : RequestFailedException, ISerializable, _Exception

    Constructors

    RelayServiceException(Exception)

    Creates a RelayServiceException.

    Declaration
    public RelayServiceException(Exception innerException)
    Parameters
    Type Name Description
    Exception innerException

    The exception raised by the service, if any.

    RelayServiceException(Int64, String)

    Creates a RelayServiceException.

    Declaration
    public RelayServiceException(long errorCode, string message)
    Parameters
    Type Name Description
    Int64 errorCode

    The error code or the HTTP Status returned by the service.

    String message

    The description of the exception.

    RelayServiceException(RelayExceptionReason, String)

    Creates a RelayServiceException.

    Declaration
    public RelayServiceException(RelayExceptionReason reason, string message)
    Parameters
    Type Name Description
    RelayExceptionReason reason

    The error code or the HTTP Status returned by the service.

    String message

    The description of the exception.

    RelayServiceException(RelayExceptionReason, String, Exception)

    Creates a RelayServiceException.

    Declaration
    public RelayServiceException(RelayExceptionReason reason, string message, Exception innerException)
    Parameters
    Type Name Description
    RelayExceptionReason reason

    The error code or the HTTP Status returned by the service.

    String message

    The description of the exception.

    Exception innerException

    The exception raised by the service, if any.

    Properties

    ApiError

    If applicable, the specific details of the API error that caused the exception.

    Declaration
    public ErrorResponseBody ApiError { get; }
    Property Value
    Type Description
    ErrorResponseBody

    Reason

    The reason of the exception.

    Declaration
    public RelayExceptionReason Reason { get; }
    Property Value
    Type Description
    RelayExceptionReason
    Back to top
    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