Try our conversational search powered by Generative AI!

Class PaymentException

Represents payment exception.

Inheritance
System.Object
System.Exception
PaymentException
Implements
System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception
Inherited Members
System.Exception.GetBaseException()
System.Exception.GetObjectData(System.Runtime.Serialization.SerializationInfo, System.Runtime.Serialization.StreamingContext)
System.Exception.GetType()
System.Exception.Message
System.Exception.Data
System.Exception.InnerException
System.Exception.TargetSite
System.Exception.StackTrace
System.Exception.HelpLink
System.Exception.Source
System.Exception.HResult
System.Exception.SerializeObjectState
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Orders.Exceptions
Assembly: Mediachase.Commerce.dll
Version: 10.8.0
Syntax
public class PaymentException : OrderException, ISerializable, _Exception

Constructors

PaymentException(String, String, String)

Initializes a new instance of the PaymentException class.

Declaration
public PaymentException(string type, string code, string message)
Parameters
Type Name Description
System.String type

The type.

System.String code

The code.

System.String message

The message.

PaymentException(String, String, String, Exception)

Initializes a new instance of the PaymentException class.

Declaration
public PaymentException(string type, string code, string message, Exception inner)
Parameters
Type Name Description
System.String type

The type.

System.String code

The code.

System.String message

The message.

System.Exception inner

The inner exception.

Properties

ErrorCode

Gets or sets the error code.

Declaration
public string ErrorCode { get; set; }
Property Value
Type Description
System.String

The error code.

ResponseMessages

Gets or sets the response messages.

Declaration
public Dictionary<string, string> ResponseMessages { get; set; }
Property Value
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>

The response messages.

Type

Gets or sets the type of the error.

Declaration
public string Type { get; set; }
Property Value
Type Description
System.String

The type of the error.

Methods

ToString()

Creates and returns a string representation of the current exception.

Declaration
public override string ToString()
Returns
Type Description
System.String

A string representation of the current exception.

Overrides
System.Exception.ToString()

Implements

System.Runtime.Serialization.ISerializable
System.Runtime.InteropServices._Exception