RovenueException class
The exception type every public Rovenue Flutter API throws. App code should catch this instead of PlatformException — the method channel layer never lets a raw PlatformException escape to callers.
- Implemented types
Constructors
- RovenueException({required RovenueErrorKind kind, required String detail, String? serverCode, int? httpStatus, bool retryable = false})
-
const
Properties
- detail → String
-
Human-readable detail message, always non-null (falls back to the
kind's name when the native side sent none).
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpStatus → int?
-
HTTP status code, when the error originated from an API response.
final
- kind → RovenueErrorKind
-
Normalized error category (see RovenueErrorKind).
final
- retryable → bool
-
Whether the operation that produced this error is safe to retry.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverCode → String?
-
Server-issued error code, when the error originated from an API
response (e.g.
"E42").final
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