Exception: CouchShell::NoSuchCommandInPlugin
- Inherits:
-
ShellUserError
- Object
- Exception
- ShellUserError
- CouchShell::NoSuchCommandInPlugin
- Defined in:
- lib/couch-shell/exceptions.rb
Instance Attribute Summary collapse
-
#command_name ⇒ Object
readonly
Returns the value of attribute command_name.
-
#plugin_name ⇒ Object
readonly
Returns the value of attribute plugin_name.
Instance Method Summary collapse
-
#initialize(plugin_name, command_name) ⇒ NoSuchCommandInPlugin
constructor
A new instance of NoSuchCommandInPlugin.
- #message ⇒ Object
Constructor Details
#initialize(plugin_name, command_name) ⇒ NoSuchCommandInPlugin
Returns a new instance of NoSuchCommandInPlugin.
40 41 42 43 |
# File 'lib/couch-shell/exceptions.rb', line 40 def initialize(plugin_name, command_name) @plugin_name = plugin_name @command_name = command_name end |
Instance Attribute Details
#command_name ⇒ Object (readonly)
Returns the value of attribute command_name.
38 39 40 |
# File 'lib/couch-shell/exceptions.rb', line 38 def command_name @command_name end |
#plugin_name ⇒ Object (readonly)
Returns the value of attribute plugin_name.
37 38 39 |
# File 'lib/couch-shell/exceptions.rb', line 37 def plugin_name @plugin_name end |
Instance Method Details
#message ⇒ Object
45 46 47 |
# File 'lib/couch-shell/exceptions.rb', line 45 def "Plugin #@plugin_name doesn't define a #@command_name command." end |