ApiErrorException
A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Exceptions.
Exception that carries an ApiError and an HTTP status code (500 unless given).
- Listed in Alta.Api.DataTransferModels
- Inherits or implements
Exception
Constructors
| Member | What it is |
|---|---|
ApiErrorException(ApiError apiError, HttpStatusCode httpCode = 500) | Creates the exception with errorCode, message, httpCode. |
ApiErrorException(ErrorCode errorCode, string message, HttpStatusCode httpCode = 500) | Creates the exception with errorCode, message, httpCode. |
Properties
| Member | What it is |
|---|---|
ApiError ApiError { get; } | The error body. |
HttpStatusCode HttpCode { get; } | HTTP status code for the error. |
Used in
Members of other types that take, return or hold a ApiErrorException: