Class ApiException
API Exception
Inheritance
System.Object
ApiException
Namespace: BoldSign.Api
Assembly: BoldSign.Api.dll
Syntax
public class ApiException : Exception
Constructors
| Improve this Doc View SourceApiException()
Initializes a new instance of the ApiException class.
Declaration
public ApiException()
ApiException(Int32, String)
Initializes a new instance of the ApiException class.
Declaration
public ApiException(int errorCode, string message)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | HTTP status code. |
System.String | message | Error message. |
ApiException(Int32, String, Object)
Initializes a new instance of the ApiException class.
Declaration
public ApiException(int errorCode, string message, dynamic errorContent = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | errorCode | HTTP status code. |
System.String | message | Error message. |
System.Object | errorContent | Error content. |
Properties
| Improve this Doc View SourceErrorCode
Gets or sets the error code (HTTP status code)
Declaration
public int ErrorCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The error code (HTTP status code). |
ErrorContent
Gets or sets the error content (body json object)
Declaration
public dynamic ErrorContent { get; }
Property Value
Type | Description |
---|---|
System.Object | The error content (Http response body). |