ExtensionFailureTracker class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
failuresFor(String namespace)
→ int
-
Current consecutive-failure count for
namespace (0 if absent).
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
recordFailure(String namespace)
→ bool
-
Record a failure for
namespace. Returns true iff this failure
brings the consecutive-failure count to (or above)
autoDisableThreshold — i.e. the caller should auto-disable on
this turn. Returns false for the first and second failures.
-
recordSuccess(String namespace)
→ void
-
Reset the consecutive-failure counter for
namespace.
-
toString()
→ String
-
A string representation of this object.
inherited
Constants
-
autoDisableThreshold
→ const int
-
PRD §17 threshold — auto-disable after three consecutive failures
from the same extension.