class

Fluxion::CLI::Failure

Inherits Fluxion::Error < Exception < Reference < Object

Raised to end a command with a specific code and message.

Carrying the code with the message means each command decides how its own failures should be classified, rather than a single mapping at the top having to guess from an exception type.

Constructors

configuration(message : String) : self
Source
external(message : String) : self
Source
invalid_input(message : String) : self
Source
io(message : String) : self
Source
new(exit_code : ExitCode, message : String)
Source

Instance methods

exit_code
Source