ErrorExitException class

Thrown to indicate that the process shall exit in orderly fashion with an error code.

An optional technical reason and causing exception can be provided. This is not output to the user, but aids in testing and debugging.

Business logic such as command implementations should avoid using this directly. If the user aborted, throw UserAbortException. If an operation failed, throw FailureException.

Implemented types
Implementers

Constructors

ErrorExitException.new([String? reason, Object? nestedException, StackTrace? nestedStackTrace])
Creates an ErrorExitException. Provide a reason and causing exception if available which aids in testing and debugging.

Properties

exitCode int
The exit code to use.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
nestedException Object?
final
nestedStackTrace StackTrace?
final
reason String?
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