PromptAbortedException class

Thrown when a wizard runs out of input before it has an answer.

Reaching end-of-input is not a crash: it is what happens when a wizard is started from CI, from a pipe, or when the user presses Ctrl-D. Without it a re-asking prompt would spin forever on a stream that can never answer.

Implemented types

Constructors

PromptAbortedException([String message = 'no input available; pass the values as options instead ' 'of using the wizard'])
Creates an abort carrying an actionable message.
const

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
What the user should do instead.
final
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.
override

Operators

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