SessionErrorCode enum
Stable error codes for SessionException, ported from pi's
SessionErrorCode union.
Values
- notFound → const SessionErrorCode
-
The addressed session or record does not exist.
- invalidSession → const SessionErrorCode
-
The session file is structurally invalid (e.g. bad header).
- invalidEntry → const SessionErrorCode
-
A JSONL entry line is invalid or corrupt.
- invalidForkTarget → const SessionErrorCode
-
A fork/navigation target is not a valid branch point.
- liveSession → const SessionErrorCode
-
A destructive operation targeted a session with a fresh live registration (issue #522): the owning process is still running.
- tooLarge → const SessionErrorCode
-
The session file is too large for the requested operation (gh-1073): a full read would materialize more than the heap survives. The error names the bounded paths — windowed resume or
fa session repair. - storage → const SessionErrorCode
-
The underlying filesystem operation failed.
- unknown → const SessionErrorCode
-
Any other session failure.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - 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 -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
SessionErrorCode> - A constant List of the values in this enum, in order of their declaration.