UpgradeRequiredError class
429 with upgrade: true — the workspace plan must be upgraded to proceed.
A counted plan cap was hit.
MisarReach answers 402 with upgrade: true when a cap is reached and names
the offending counter. Retrying cannot help until the cap resets or the plan
changes.
Distinct from the 503 retry: true the server sends when it could not
check the quota: that one is retried, so "we do not know" is never
mistaken for "you are over your limit".
- Inheritance
-
- Object
- MisarReachError
- UpgradeRequiredError
Constructors
-
UpgradeRequiredError(String message, {Map<
String, dynamic> ? body, int status = 402}) -
const
Properties
-
body
→ Map<
String, dynamic> ? -
Decoded JSON error body, when available.
finalinherited
- code → String?
-
finalinherited
- current → int?
-
Usage against that cap when the call was refused.
no setter
- feature → String?
-
The counter that was exhausted, e.g.
lead_searches.no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- limit → int?
-
The cap on the current plan.
no setter
- message → String
-
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → int
-
finalinherited
- upgradeUrl → String?
-
Absolute URL to the billing page. The server sends an app-relative path.
no setter
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