Table of Contents

Class ApException

Namespace
AkashicPaySDK.Exception
Assembly
AkashicPaySDK.dll

Custom exception class for the Akashic Pay SDK. It is designed to encapsulate errors specific to the SDK with detailed information.

public class ApException : Exception, ISerializable
Inheritance
ApException
Implements
Inherited Members

Constructors

ApException(ApError)

Constructor to create an ApException using the detail message from the ApError.

public ApException(ApError apError)

Parameters

apError ApError

The ApError object containing error details.

ApException(ApError, Exception)

Constructor to create an ApException with an underlying cause (another exception).

public ApException(ApError apError, Exception cause)

Parameters

apError ApError

The ApError object containing error details.

cause Exception

The underlying exception that caused this error.

ApException(ApError, string?)

Constructor to create an ApException with a custom error message.

public ApException(ApError apError, string? message)

Parameters

apError ApError

The ApError object representing the error type.

message string

Custom error message describing the exception.

Properties

Error

Property to store the associated error details of type ApError.

public ApError Error { get; }

Property Value

ApError