Class ResponseException
Thrown when a response was received from the Worldline Acquiring platform which indicates an error.
Inheritance
ResponseException
Assembly: Worldline.Acquiring.Sdk.dll
Syntax
public class ResponseException : Exception, ISerializable
Constructors
Declaration
public ResponseException(HttpStatusCode statusCode, string body, IEnumerable<IResponseHeader> headers)
Parameters
Properties
Body
Gets the raw response body that was returned by the Worldline Acquiring platform.
Declaration
public string Body { get; }
Property Value
Gets the headers that were returned by the Worldline Acquiring platform.
Declaration
public IEnumerable<IResponseHeader> Headers { get; }
Property Value
StatusCode
Gets the HTTP status code that was returned by the Worldline Acquiring platform.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Methods
Returns the header with the given name, or null
if there was no such header.
Declaration
public IResponseHeader GetHeader(string headerName)
Parameters
Type |
Name |
Description |
string |
headerName |
|
Returns
Returns the value of the header with the given name, or null
if there was no such header.
Declaration
public string GetHeaderValue(string headerName)
Parameters
Type |
Name |
Description |
string |
headerName |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements