Class KinveyException
Wrapper for a Kinvey-specific exception, which contains information about how to resolve the issue.
Inheritance
Namespace: Kinvey
Assembly: Kinvey.dll
Syntax
public class KinveyException : Exception
Constructors
| Improve this Doc View SourceKinveyException(EnumErrorCategory, EnumErrorCode, HttpResponseMessage, Exception)
Initializes a new instance of the KinveyException class.
Declaration
public KinveyException(EnumErrorCategory errorCategory, EnumErrorCode errorCode, HttpResponseMessage response, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
EnumErrorCategory | errorCategory | The EnumErrorCategory of the exception. |
EnumErrorCode | errorCode | The EnumErrorCode of the exception. |
HttpResponseMessage | response | Http response. |
Exception | innerException | Inner exception thrown, if available. |
KinveyException(EnumErrorCategory, EnumErrorCode, String, Exception)
Initializes a new instance of the KinveyException class.
Declaration
public KinveyException(EnumErrorCategory errorCategory, EnumErrorCode errorCode, string info, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
EnumErrorCategory | errorCategory | The EnumErrorCategory of the exception. |
EnumErrorCode | errorCode | The EnumErrorCode of the exception. |
System.String | info | Additional information about the exception. |
Exception | innerException | [optional] Inner exception thrown, if available. |
KinveyException(EnumErrorCategory, EnumErrorCode, String, String, Exception)
Initializes a new instance of the KinveyException class.
Declaration
public KinveyException(EnumErrorCategory errorCategory, EnumErrorCode errorCode, string message, string info, Exception innerException = null)
Parameters
Type | Name | Description |
---|---|---|
EnumErrorCategory | errorCategory | The EnumErrorCategory of the exception. |
EnumErrorCode | errorCode | The EnumErrorCode of the exception. |
System.String | message | The message of the exception. |
System.String | info | Additional information about the exception. |
Exception | innerException | [optional] Inner exception thrown, if available. |
Properties
| Improve this Doc View SourceDebug
Gets or sets the debug string.
Declaration
public string Debug { get; set; }
Property Value
Type | Description |
---|---|
System.String | The debug string for this exception, to help with resolution. |
Description
Gets or sets the description.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String | The description of this exception. |
Error
Gets or sets the error.
Declaration
public string Error { get; set; }
Property Value
Type | Description |
---|---|
System.String | The error of this exception. |
ErrorCategory
Gets the error category.
Declaration
public EnumErrorCategory ErrorCategory { get; }
Property Value
Type | Description |
---|---|
EnumErrorCategory | The EnumErrorCategory enumeration for this exception. |
ErrorCode
Gets the error code.
Declaration
public EnumErrorCode ErrorCode { get; }
Property Value
Type | Description |
---|---|
EnumErrorCode | The EnumErrorCode enumeration for this exception. |
Info
Gets or sets the info string.
Declaration
public string Info { get; set; }
Property Value
Type | Description |
---|---|
System.String | The info string is additional information about the exception. |
RequestID
Gets or sets the request ID associated with this exception. This field may be empty if there is no associated request ID with this exception (e.g. a client-side validation exception).
Declaration
public string RequestID { get; set; }
Property Value
Type | Description |
---|---|
System.String | The request ID associated with this exception. |
StatusCode
Gets or sets the status code for this error.
Declaration
public int StatusCode { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The status code. |