ExitException class

An exception that can be thrown to exit the command with a specific exit code.

Implemented types

Constructors

ExitException(int exitCode)
Creates an instance of ExitException with a given exit code.
ExitException.error()
Creates an instance of ExitException with a general error exit code (1).
ExitException.ok()
Creates an instance of ExitException with an OK exit code (0).

Properties

exitCode → int
The exit code to use.
final
hashCode → int
The hash code for this object.
no setterinherited
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

codeError → const int
General errors - This code is often used to indicate generic or unspecified errors.
codeOk → const int
Successful termination - The command was successful.