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
HttpStatusCodeHttpStatusCodecode of the failing API call.
apiError
ApiErrorOptional ApiError of the failing API call.
ErrorApiException(SerializationInfo, StreamingContext)
protected ErrorApiException(SerializationInfo serializationInfo, StreamingContext streamingContext)
Parameters
serializationInfo
SerializationInfostreamingContext
StreamingContext
ErrorApiException(string)
Initializes a new instance of the ErrorApiException class with a specified error message.
public ErrorApiException(string message)
Parameters
message
stringThe 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
stringThe error message that explains the reason for the exception.
innerException
ExceptionThe 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
StatusCode
HttpStatusCode code from the failing API call.
public HttpStatusCode StatusCode { get; }