Search Results for

    Show / Hide Table of Contents

    Class ApiException

    Represents an error response from the Worldline Global Collect platform which contains an ID and a list of errors.

    Inheritance
    object
    Exception
    ApiException
    AuthorizationException
    DeclinedTransactionException
    IdempotenceException
    PlatformException
    ReferenceException
    ValidationException
    Implements
    ISerializable
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Data
    Exception.HelpLink
    Exception.HResult
    Exception.InnerException
    Exception.Message
    Exception.Source
    Exception.StackTrace
    Exception.TargetSite
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    Namespace: Worldline.Connect.Sdk.V1
    Assembly: Worldline.Connect.Sdk.dll
    Syntax
    public class ApiException : Exception, ISerializable

    Constructors

    ApiException(HttpStatusCode, string, string, IList<APIError>)

    Declaration
    public ApiException(HttpStatusCode statusCode, string responseBody, string errorId, IList<APIError> errors)
    Parameters
    Type Name Description
    HttpStatusCode statusCode
    string responseBody
    string errorId
    IList<APIError> errors

    ApiException(string, HttpStatusCode, string, string, IList<APIError>)

    Declaration
    public ApiException(string message, HttpStatusCode statusCode, string responseBody, string errorId, IList<APIError> errors)
    Parameters
    Type Name Description
    string message
    HttpStatusCode statusCode
    string responseBody
    string errorId
    IList<APIError> errors

    Properties

    ErrorId

    Gets the errorId received from the Worldline Global Collect platform if available.

    Declaration
    public string ErrorId { get; }
    Property Value
    Type Description
    string

    Errors

    Gets the errors received from the Worldline Global Collect platform if available. Never null.

    Declaration
    public IList<APIError> Errors { get; }
    Property Value
    Type Description
    IList<APIError>

    ResponseBody

    Gets the raw response body that was returned by the Worldline Global Collect platform.

    Declaration
    public string ResponseBody { get; }
    Property Value
    Type Description
    string

    StatusCode

    Gets the HTTP status code that was returned by the Worldline Global Collect platform.

    Declaration
    public HttpStatusCode StatusCode { get; }
    Property Value
    Type Description
    HttpStatusCode

    Methods

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    Exception.ToString()

    Implements

    ISerializable
    In This Article
    Back to top Copyright (c) 2016 Global Collect Services B.V.