abstract class Athena::Console::Exceptions::ConsoleException

Overview

Base class of all ACON::Exceptions.

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

Direct Known Subclasses

Defined in:

exceptions/console_exception.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def code : Int32 #

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


[View source]