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.new(String message, [Object? cause])
-
Creates a PhonePeCheckoutException with a
message
and optionalcause
.
Properties
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