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, _Exception
- 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
apErrorApErrorThe 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
apErrorApErrorThe ApError object containing error details.
causeExceptionThe 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
apErrorApErrorThe ApError object representing the error type.
messagestringCustom error message describing the exception.
Properties
Error
Property to store the associated error details of type ApError.
public ApError Error { get; }