Exception: Codebot::CommandError

Inherits:
UserError
  • Object
show all
Defined in:
lib/codebot/command_error.rb

Overview

This exception stores information about an error that occurred due to the user entering an invalid command, for example when two mutually exclusive command-line options are specified.

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ CommandError

Constructs a new command error.

Parameters:

  • message (String)

    the error message



13
14
15
# File 'lib/codebot/command_error.rb', line 13

def initialize(message)
  super
end