Class ApiException
Represents an exception that occurs during API operations.
Inheritance
ApiException
Implements
Inherited Members
Namespace: Singulink.Net.Http.Api
Assembly: Singulink.Net.Http.Api.dll
Syntax
public class ApiException : Exception, ISerializable
Constructors
| Name | Description |
|---|---|
| ApiException(HttpStatusCode, string) | Initializes a new instance of the ApiException class with a specified HTTP status code and error message. |
| ApiException(HttpStatusCode, string, Exception?) | Initializes a new instance of the ApiException class with a specified HTTP status code, error message and inner exception. |
Properties
| Name | Description |
|---|---|
| ErrorContent | Gets the error content associated with the API exception if the error response was not in |
| StatusCode | Gets the HTTP status code associated with the API exception. |