Search Results for

    Show / Hide Table of Contents

    Class ResponseException

    Thrown when a response was received from the Ingenico ePayments platform which indicates an error.

    Inheritance
    object
    Exception
    ResponseException
    Implements
    ISerializable
    _Exception
    Inherited Members
    Exception.GetBaseException()
    Exception.GetObjectData(SerializationInfo, StreamingContext)
    Exception.GetType()
    Exception.Message
    Exception.Data
    Exception.InnerException
    Exception.TargetSite
    Exception.StackTrace
    Exception.HelpLink
    Exception.Source
    Exception.HResult
    Exception.SerializeObjectState
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.MemberwiseClone()
    Namespace: Ingenico.Connect.Sdk
    Assembly: connect-sdk-dotnet.dll
    Syntax
    public class ResponseException : Exception, ISerializable, _Exception

    Constructors

    ResponseException(HttpStatusCode, string, IEnumerable<IResponseHeader>)

    Declaration
    public ResponseException(HttpStatusCode statusCode, string body, IEnumerable<IResponseHeader> headers)
    Parameters
    Type Name Description
    HttpStatusCode statusCode
    string body
    IEnumerable<IResponseHeader> headers

    Properties

    Body

    Gets the raw response body that was returned by the Ingenico ePayments platform.

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

    Headers

    Gets the headers that were returned by the Ingenico ePayments platform.

    Declaration
    public IEnumerable<IResponseHeader> Headers { get; }
    Property Value
    Type Description
    IEnumerable<IResponseHeader>

    StatusCode

    Gets the HTTP status code that was returned by the Ingenico ePayments platform.

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

    Methods

    GetHeader(string)

    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
    Type Description
    IResponseHeader

    GetHeaderValue(string)

    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
    Type Description
    string

    ToString()

    Returns a string that represents the current ResponseException.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string that represents the current ResponseException.

    Overrides
    Exception.ToString()

    Implements

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