37 errorMessage?.Message ?? $
"HTTP {responseMessage?.StatusCode ?? throw new ArgumentNullException(nameof(responseMessage))}. Unknown API error, ErrorMessage payload not present!")
49 protected ApiException(HttpResponseMessage responseMessage,
string message)
50 : base(responseMessage, message)
76 : base(message, innerException)
Represents an error message returned by the server.
Version? ServerApiVersion
The version of the API the server is using.
string? AdditionalData
Additional data associated with the error message.
ErrorCode ErrorCode
The ErrorCode of the ErrorMessageResponse.
string? AdditionalServerData
Additional error data from the server.
ApiException(HttpResponseMessage responseMessage, string message)
Initializes a new instance of the ApiException class.
Version? ServerApiVersion
The Version of the server's API.
ApiException(string message, Exception innerException)
Initializes a new instance of the ApiException class.
ApiException()
Initializes a new instance of the ApiException class.
ApiException(ErrorMessageResponse? errorMessage, HttpResponseMessage responseMessage)
Initializes a new instance of the ApiException class.
ApiException(string message)
Initializes a new instance of the ApiException class.
Exceptions thrown by IRestServerClients.
ErrorCode
Types of Response.ErrorMessageResponses that the API may return.