Class LatitudePayApiException
Thrown when an (HTTP) error response is received from the LatitudePay API.
Implements
Inherited Members
Namespace: Yort.LatitudePay.InStore
Assembly: Yort.LatitudePay.InStore.dll
Syntax
[Serializable]
public class LatitudePayApiException : Exception, ISerializable
Constructors
| Improve this Doc View SourceLatitudePayApiException()
Default constructor.
Declaration
public LatitudePayApiException()
LatitudePayApiException(SerializationInfo, StreamingContext)
Deserialisation constructor.
Declaration
protected LatitudePayApiException(SerializationInfo info, StreamingContext context)
Parameters
Type | Name | Description |
---|---|---|
SerializationInfo | info | |
StreamingContext | context |
LatitudePayApiException(String)
Partial constructor.
Declaration
public LatitudePayApiException(string message)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message to associated with this exception. |
LatitudePayApiException(String, Exception)
Partial constructor.
Declaration
public LatitudePayApiException(string message, Exception inner)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message to associated with this exception. |
Exception | inner | The exception wrapped by this exception. |
LatitudePayApiException(String, Int32)
Recommended constructor.
Declaration
public LatitudePayApiException(string message, int statusCode)
Parameters
Type | Name | Description |
---|---|---|
String | message | The error message returned by the LatitudePay API. |
Int32 | statusCode | The HTTP status code returned by the LatitudePay API. |
Properties
| Improve this Doc View SourceStatusCode
Returns the HTTP status code associated with this exception, if any, otherwise -1.
Declaration
public int StatusCode { get; }
Property Value
Type | Description |
---|---|
Int32 |