UpiException class
Exception class for handling UPI (Unified Payments Interface) related errors.
This class extends the built-in Exception
class and provides specific
exception types for various UPI transaction scenarios.
- Implemented types
Constructors
- UpiException({required UpiExceptionType type, required String? message, required dynamic details, required String? stacktrace})
- Creates an instance of UpiException.
- UpiException.fromException(PlatformException exception)
-
Factory method to create an instance of UpiException from a PlatformException.
factory
Properties
- details → dynamic
-
Additional details related to the exception.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
A human-readable message providing more information about the exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stacktrace → String?
-
The stack trace associated with the exception.
final
- type → UpiExceptionType
-
The type of UPI exception.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited