UserInterruptException class
Specialized exception for user keyboard interrupts (typically Ctrl+C).
- Inheritance
-
- Object
- PromptAbortedException
- UserInterruptException
Constructors
- UserInterruptException({KeyEvent? event, String message = 'User interrupted the prompt via Ctrl+C.'})
-
Creates a new UserInterruptException.
const
Properties
- event → KeyEvent?
-
The raw key event that triggered the abort, if available.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
Descriptive message explaining why the runner aborted.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trigger → PromptExitTrigger
-
The specific exit trigger that caused the abort.
finalinherited
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