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::RuntimeError


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

View source


#code : Int32#

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

View source