Class APIClientError#
Defined in File APIClientError.cs
Inheritance Relationships#
Base Type#
public Exception
Class Documentation#
- class xbe.sdk.APIClientError : Exception#
An exception type that is thrown from APIClient if an unrecoverable error occurs during a request.
Public Functions
- APIClientError ()#
- APIClientError (int status)
- APIClientError (string message, HttpStatusCode statusCode)
- APIClientError (string message, int status)
- APIClientError (HttpStatusCode statusCode)
We’ll use a fallback message - if you use FromJson, fallback will overwrite.
- Param statusCode:
- void FromJson (string json)#
- string ToJson ()#
Properties
- string StatusString { get; set; }#
- override string Message { get; set; }#
This is what gets displayed in the throw logs.
- string Stack { get; set; }#
- int Status { get; set; }#
Public Static Attributes
- const HttpStatusCode DEFAULT_HTTP_STATUS = HttpStatusCode.Unused#