docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ServiceException

    A Service Error was returned by a service.

    Inheritance
    object
    Exception
    ServiceException
    AuthenticationFailedException
    ConnectionException
    ForbiddenException
    InvalidArgumentException
    InvalidRequestException
    NotFoundException
    PayloadTooLargeException
    ServerException
    ServiceClientException
    TooManyRequestsException
    TransientServiceException
    UnauthorizedException
    UnsupportedMediaTypeException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetType()
    Exception.ToString()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cloud.Common
    Assembly: Unity.Cloud.Common.dll
    Syntax
    [Serializable]
    public class ServiceException : Exception, ISerializable

    Constructors

    ServiceException()

    Default constructor.

    Declaration
    protected ServiceException()

    ServiceException(SerializationInfo, StreamingContext)

    Creates and returns a ServiceException from the provided serialization info and streaming context.

    Declaration
    protected ServiceException(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info

    The serialization info.

    StreamingContext context

    the streaming context.

    ServiceException(string)

    Creates and returns a ServiceException from the provided error message.

    Declaration
    public ServiceException(string message)
    Parameters
    Type Name Description
    string message

    The exception message.

    ServiceException(string, Exception)

    Creates and returns a ServiceException from the provided error message and inner exception.

    Declaration
    public ServiceException(string message, Exception innerException)
    Parameters
    Type Name Description
    string message

    The exception message.

    Exception innerException

    The inner exception.

    Properties

    Detail

    The service error detail.

    Declaration
    public string Detail { get; }
    Property Value
    Type Description
    string

    Details

    An array of additional error m_Details.

    Declaration
    public IEnumerable<string> Details { get; }
    Property Value
    Type Description
    IEnumerable<string>

    ErrorCode

    The service error code.

    Declaration
    public ServiceErrorCode ErrorCode { get; }
    Property Value
    Type Description
    ServiceErrorCode

    RequestId

    The ID of the failed request.

    Declaration
    public string RequestId { get; }
    Property Value
    Type Description
    string

    StatusCode

    The service error HTTP status code.

    Declaration
    public HttpStatusCode? StatusCode { get; }
    Property Value
    Type Description
    HttpStatusCode?

    Title

    The service error title.

    Declaration
    public string Title { get; }
    Property Value
    Type Description
    string

    Type

    The service error type.

    Declaration
    public string Type { get; }
    Property Value
    Type Description
    string

    Methods

    GetObjectData(SerializationInfo, StreamingContext)

    Declaration
    public override void GetObjectData(SerializationInfo info, StreamingContext context)
    Parameters
    Type Name Description
    SerializationInfo info
    StreamingContext context
    Overrides
    Exception.GetObjectData(SerializationInfo, StreamingContext)

    Implements

    ISerializable
    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)