FlutterPageableException class
A custom exception class to handle various error scenarios in the app, providing information such as error messages, status codes, and specific error flags for rerouting or handling specific conditions.
This exception is used to manage application errors, such as session expiration, platform incompatibility, or account lock status, and facilitates rerouting when these errors occur.
- Implemented types
Constructors
- FlutterPageableException(String message, {int? code})
-
Creates a FlutterPageableException with a specified
messageand optional fields forcode.
Properties
- code ↔ int?
-
An optional error code that provides additional context for the error.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- message ↔ String
-
A descriptive message that explains the cause of the exception.
getter/setter pair
- 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 -
Returns a string representation of the exception, including the message and
the optional code if it is provided.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited