Class ApiException
Represents an error response from the Worldline Global Collect platform which contains an ID and a list of errors.
Namespace: Worldline.Connect.Sdk.V1
Assembly: Worldline.Connect.Sdk.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 errorId
received from the Worldline Global Collect platform if available.
Declaration
public string ErrorId { get; }
Property Value
Errors
Gets the errors
received from the Worldline Global Collect platform if available. Never null
.
Declaration
public IList<APIError> Errors { get; }
Property Value
ResponseBody
Gets the raw response body that was returned by the Worldline Global Collect platform.
Declaration
public string ResponseBody { get; }
Property Value
StatusCode
Gets the HTTP status code that was returned by the Worldline Global Collect platform.
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
Methods
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements