Class AfterPayApiException
Represents an exception thrown due to an error response from the AfterPay API.
Inheritance
Namespace: Yort.AfterPay.InStore
Assembly: cs.temp.dll.dll
Syntax
public class AfterPayApiException : Exception
Constructors
| Name | Description |
|---|---|
| AfterPayApiException() | Default constructor, not recommended for use but supported due to framework requirements. |
| AfterPayApiException(SerializationInfo, StreamingContext) | Constructor required to support deserialisation of the exception. |
| AfterPayApiException(String) | Partial contructor, not recommended for use but supported due to framework requirements. |
| AfterPayApiException(String, Exception) | Partial contructor, not recommended for use but supported due to framework requirements. |
| AfterPayApiException(AfterPayApiError) | Recommended constructor. Creates an exception from an AfterPayApiError response. |
| AfterPayApiException(AfterPayApiError, Exception) | Recommended constructor. Creates an exception from an AfterPayApiError response. |
Properties
| Name | Description |
|---|---|
| ErrorCode | A static error code returned by the AfterPay API representing the error that occurred, can be useful for making programmatic decisions on how to handle an excpetion. |
| ErrorId | Returns the unique error id generated by AfterPay related to this exception. |
| HttpStatusCode | An integer that represents the HTTP status code that was used in the response that generated this error. |