ApiException class
Thrown when an Autodesk HTTP request fails — an exchange API request, or an authentication token request. Implements IStatusCodeException.
public class ApiException : Exception, IStatusCodeException
Public Members
| name | description |
|---|---|
| ApiException(…) | Initializes a new instance of the ApiException class. |
| ApiErrorCode { get; set; } | Gets or sets a mapped API error code when the response identifies a known failure. |
| Headers { get; } | Gets the response headers from the failed request. |
| Message { get; set; } | Gets or sets the error message without the appended status and response details. |
| Response { get; } | Gets the response body from the failed request. |
| StatusCode { get; } | Gets or sets hTTP Status code of response. |
| override ToString() |
See Also
- interface IStatusCodeException
- namespace Autodesk.DataExchange.Exceptions