PhonePeCheckoutException class

Exception thrown by the PhonePe checkout helper.

Wraps a descriptive message and an optional cause. This is typically thrown if the helper cannot complete the flow due to networking errors, invalid responses, or unexpected states.

Example:

try {
  await PhonePeCheckout.startPayment(...);
} on PhonePeCheckoutException catch (e) {
  debugPrint('Checkout failed: $e');
}
Implemented types

Constructors

PhonePeCheckoutException(String message, [Object? cause])
Creates a PhonePeCheckoutException with a message and optional cause.

Properties

cause → Object?
The underlying cause of the error, if available.
final
hashCode → int
The hash code for this object.
no setterinherited
message → String
A human-readable description of the error.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited