Class ApiException
Represents an error response from the Ingenico ePayments platform which contains an ID and a list of errors.
Namespace: Ingenico.Connect.Sdk
Assembly: connect-sdk-dotnet.dll
Syntax
public class ApiException : Exception, ISerializable, _Exception
Constructors
ApiException(HttpStatusCode, string, string, IList<APIError>)
Declaration
public ApiException(HttpStatusCode statusCode, string responseBody, string errorId, IList<APIError> errors)
Parameters
ApiException(string, HttpStatusCode, string, string, IList<APIError>)
Declaration
public ApiException(string message, HttpStatusCode statusCode, string responseBody, string errorId, IList<APIError> errors)
Parameters
Properties
ErrorId
Gets the error identifier received from the Ingenico ePayments platform if available.
Declaration
public string ErrorId { get; }
Property Value
Errors
Gets the error list received from the Ingenico ePayments platform if available. Never null
.
Declaration
public IList<APIError> Errors { get; }
Property Value
ResponseBody
Gets the raw response body that was returned by the Ingenico ePayments platform.
Declaration
public string ResponseBody { get; }
Property Value
StatusCode
Gets the HTTP status code that was returned by the Ingenico ePayments platform.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Methods
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements