Skip to content

abstract class Athena::Console::Exceptions::ConsoleException
inherits Exception #

Base class of all ACON::Exceptions.

Exposes a #code method that represents the exit code of a command invocation.

Direct known subclasses

Athena::Console::Exceptions::CommandNotFound Athena::Console::Exceptions::InvalidArgument Athena::Console::Exceptions::Logic Athena::Console::Exceptions::MissingInput Athena::Console::Exceptions::ValidationFailed


.new(message : String, code : Int32 = 1, cause : Exception? = nil) #

View source


#code #

Returns the code to use as the exit status of a command invocation.

View source