Exception: SmilyCli::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/smily_cli/errors.rb,
sig/smily_cli.rbs

Overview

Base class for every error the CLI raises deliberately. Command handlers rescue this and print a clean, single-line message instead of a backtrace.

Direct Known Subclasses

ApiError, ConfigurationError, McpError, UsageError

Instance Method Summary collapse

Instance Method Details

#exit_statusInteger

Process exit status to use when this error reaches the top level.

Returns:

  • (Integer)


11
12
13
# File 'lib/smily_cli/errors.rb', line 11

def exit_status
  1
end