Skip to main content

ApiErrorException

A class in Alta.Api.DataTransferModels, Alta.Api.DataTransferModels.Exceptions.

Exception that carries an ApiError and an HTTP status code (500 unless given).

Constructors​

MemberWhat 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​

MemberWhat 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: