Table of Contents

Class ErrorApiException

Namespace
Auth0.Core.Exceptions
Assembly
Auth0.Core.dll

Represents errors that occur when making API calls.

[Serializable]
public class ErrorApiException : ApiException, ISerializable
Inheritance
ErrorApiException
Implements
Inherited Members

Constructors

ErrorApiException()

Initializes a new instance of the ErrorApiException class.

public ErrorApiException()

ErrorApiException(HttpStatusCode, ApiError)

Initializes a new instance of the ApiException class with a specified statusCode and optional apiError.

public ErrorApiException(HttpStatusCode statusCode, ApiError apiError = null)

Parameters

statusCode HttpStatusCode

HttpStatusCodecode of the failing API call.

apiError ApiError

Optional ApiError of the failing API call.

ErrorApiException(SerializationInfo, StreamingContext)

protected ErrorApiException(SerializationInfo serializationInfo, StreamingContext streamingContext)

Parameters

serializationInfo SerializationInfo
streamingContext StreamingContext

ErrorApiException(string)

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

public ErrorApiException(string message)

Parameters

message string

The error message that explains the reason for the exception.

ErrorApiException(string, Exception)

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

public ErrorApiException(string message, Exception innerException)

Parameters

message string

The error message that explains the reason for the exception.

innerException Exception

The exception that is the cause of the current exception, or a null reference if no inner exception is specified.

Properties

ApiError

Optional ApiError from the failing API call.

public ApiError ApiError { get; }

Property Value

ApiError

StatusCode

HttpStatusCode code from the failing API call.

public HttpStatusCode StatusCode { get; }

Property Value

HttpStatusCode