Constructor AfterPayApiException
AfterPayApiException()
Default constructor, not recommended for use but supported due to framework requirements.
Declaration
public AfterPayApiException()
AfterPayApiException(AfterPayApiError)
Recommended constructor. Creates an exception from an AfterPayApiError response.
Declaration
public AfterPayApiException(AfterPayApiError error)
Parameters
Type | Name | Description |
---|---|---|
AfterPayApiError | error | An AfterPayApiError response used to populate the exception details. |
AfterPayApiException(AfterPayApiError, Exception)
Recommended constructor. Creates an exception from an AfterPayApiError response.
Declaration
public AfterPayApiException(AfterPayApiError error, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
AfterPayApiError | error | An AfterPayApiError response used to populate the exception details. |
Exception | innerException | Another exception that is wrapped by this one. |
AfterPayApiException(String)
Partial contructor, not recommended for use but supported due to framework requirements.
Declaration
public AfterPayApiException(string message)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A custom error message to use. |
AfterPayApiException(String, Exception)
Partial contructor, not recommended for use but supported due to framework requirements.
Declaration
public AfterPayApiException(string message, Exception innerException)
Parameters
Type | Name | Description |
---|---|---|
System.String | message | A custom error message to use. |
Exception | innerException | Another exception that is wrapped by this one. |
AfterPayApiException(SerializationInfo, StreamingContext)
Constructor required to support deserialisation of the exception.
Declaration
protected AfterPayApiException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Runtime.Serialization.SerializationInfo | info | A System.Runtime.Serialization.SerializationInfo used to read serialised information. |
System.Runtime.Serialization.StreamingContext | context | A System.Runtime.Serialization.StreamingContext used to read serialised information. |