WorldStorm class final

One failure storm: a named window of scripted failures on one touchpoint. Kinds (the issue's storm classes):

  • network-flap — HTTP failures (default status 503) over a call range: calls fromCall, toCall fail.
  • auth-expiry — an auth failure mid-flow (single call by default, code user-token-expired).
  • partial-write — a half-written marker (the write "succeeds" but the response carries partial: true, which honest syncs must detect and repair).

Constructors

WorldStorm({required String name, required String kind, required String touchpoint, required int fromCall, required int toCall, required Map<String, dynamic> failure, required String description, String? method})
const
WorldStorm.fromJson(Map<String, dynamic> json)
factory

Properties

description String
final
failure Map<String, dynamic>
The scripted failure payload: {type: http, status: 503} / {type: auth, code: user-token-expired} / {type: partial}.
final
failureKind String
The storm's failure classification label.
no setter
fromCall int
First call index (1-based) the storm fires on.
final
hashCode int
The hash code for this object.
no setterinherited
kind String
final
method String?
Optional method scoping: the storm fires only on touchpoint's method (null = every method of the touchpoint shares the call window). Scoping is how mid-flow storms stay surgical — an auth expiry at signIn call 1 must not also fail signOut.
final
name String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
toCall int
Last call index the storm fires on (defaults to fromCall).
final
touchpoint String
final

Methods

firesOn(int callIndex) bool
Whether the storm fires on callIndex (1-based).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited