Class ApiException
API Exception
public class ApiException : Exception, ISerializable
- Inheritance
-
ApiException
- Implements
- Inherited Members
Constructors
ApiException()
Initializes a new instance of the ApiException class.
public ApiException()
ApiException(int, string)
Initializes a new instance of the ApiException class.
public ApiException(int errorCode, string message)
Parameters
ApiException(int, string, dynamic)
Initializes a new instance of the ApiException class.
public ApiException(int errorCode, string message, dynamic errorContent = null)
Parameters
Properties
ErrorCode
Gets or sets the error code (HTTP status code)
public int ErrorCode { get; set; }
Property Value
- int
The error code (HTTP status code).
ErrorContent
Gets or sets the error content (body json object)
public dynamic ErrorContent { get; }
Property Value
- dynamic
The error content (Http response body).