Class ApiError
- Namespace
- Auth0.Core.Exceptions
- Assembly
- Auth0.Core.dll
Error information captured from a failed API request.
[JsonConverter(typeof(ApiErrorConverter))]
public class ApiError
- Inheritance
-
ApiError
- Inherited Members
Properties
Error
Description of the failing HTTP Status Code.
[JsonProperty("error")]
public string Error { get; set; }
Property Value
ErrorCode
Error code returned by the API.
[JsonProperty("errorCode")]
public string ErrorCode { get; set; }
Property Value
ExtraData
Additional key/values that might be returned by the error such as mfa_required
.
[JsonProperty("extraData")]
public Dictionary<string, string> ExtraData { get; set; }
Property Value
Message
Description of the error.
[JsonProperty("message")]
public string Message { get; set; }
Property Value
Methods
Parse(HttpResponseMessage)
Parse a HttpResponseMessage into an ApiError asynchronously.
public static Task<ApiError> Parse(HttpResponseMessage response)
Parameters
response
HttpResponseMessageHttpResponseMessage to parse.