Class ApiException
Represents an error response from the Worldline Acquiring platform.
Namespace: Worldline.Acquiring.Sdk.V1
Assembly: Worldline.Acquiring.Sdk.dll
Syntax
public class ApiException : Exception, ISerializable
Constructors
ApiException(HttpStatusCode, string, string, string, int?, string, string)
Declaration
public ApiException(HttpStatusCode statusCode, string responseBody, string type, string title, int? status, string detail, string instance)
Parameters
ApiException(string, HttpStatusCode, string, string, string, int?, string, string)
Declaration
public ApiException(string message, HttpStatusCode statusCode, string responseBody, string type, string title, int? status, string detail, string instance)
Parameters
Properties
Detail
Gets the detail
received from the Worldline Acquiring platform if available.
Declaration
public string Detail { get; }
Property Value
Instance
Gets the instance
received from the Worldline Acquiring platform if available.
Declaration
public string Instance { get; }
Property Value
ResponseBody
Gets the raw response body that was returned by the Worldline Acquiring platform.
Declaration
public string ResponseBody { get; }
Property Value
Status
Gets the status
received from the Worldline Acquiring platform if available.
Declaration
public int? Status { get; }
Property Value
StatusCode
Gets the HTTP status code that was returned by the Worldline Acquiring platform.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Title
Gets the title
received from the Worldline Acquiring platform if available.
Declaration
public string Title { get; }
Property Value
Type
Gets the type
received from the Worldline Acquiring platform if available.
Declaration
public string Type { get; }
Property Value
Methods
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements