Request

Response

    Class ServiceApiException

    Namespace: Autodesk.Webhooks
    Assembly: Autodesk.Webhooks.dll

    An object that is returned when an API call fails.

    public abstract class ServiceApiException : HttpRequestException, ISerializable
    

    Inheritance

    object Exception HttpRequestException ServiceApiException

    Derived

    WebhooksApiException

    Implements

    ISerializable

    Inherited Members

    Exception.GetBaseException() , Exception.GetObjectData(SerializationInfo, StreamingContext) , 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.GetType() , object.MemberwiseClone() , object.ReferenceEquals(object, object) , object.ToString()

    Constructors

    ServiceApiException(string)

    Initializes a new instance of the class with a specified error message.

    public ServiceApiException(string message)
    

    Parameters

    message string

    The error message.

    ServiceApiException(string, HttpResponseMessage, Exception)

    Initializes a new instance of the class with a specified error message, HTTP response message, and a reference to the inner exception that is the cause of this exception.

    public ServiceApiException(string message, HttpResponseMessage httpResponseMessage, Exception exception)
    

    Parameters

    message string

    The error message.

    httpResponseMessage HttpResponseMessage

    The HTTP response message.

    exception Exception

    The exception that is the cause of the current exception.

    Properties

    HttpResponseMessage

    Gets or sets the HTTP response message.

    public HttpResponseMessage HttpResponseMessage { get; set; }
    

    Property Value

    HttpResponseMessage