Exception: Command::CommandException
- Inherits:
-
StandardError
- Object
- StandardError
- Command::CommandException
- Defined in:
- lib/command-set/command-set.rb
Direct Known Subclasses
ArgumentInvalidException, ArgumentUnrecognizedException, OutOfArgumentsException
Instance Attribute Summary collapse
-
#command ⇒ Object
Returns the value of attribute command.
-
#raw_input ⇒ Object
Returns the value of attribute raw_input.
Instance Method Summary collapse
-
#initialize(msg = nil) ⇒ CommandException
constructor
A new instance of CommandException.
- #message ⇒ Object
Constructor Details
#initialize(msg = nil) ⇒ CommandException
Returns a new instance of CommandException.
103 104 105 106 107 |
# File 'lib/command-set/command-set.rb', line 103 def initialize(msg=nil) super @raw_input = nil @command = nil end |
Instance Attribute Details
#command ⇒ Object
Returns the value of attribute command.
121 122 123 |
# File 'lib/command-set/command-set.rb', line 121 def command @command end |
#raw_input ⇒ Object
Returns the value of attribute raw_input.
121 122 123 |
# File 'lib/command-set/command-set.rb', line 121 def raw_input @raw_input end |
Instance Method Details
#message ⇒ Object
109 110 111 112 113 114 115 116 117 118 119 |
# File 'lib/command-set/command-set.rb', line 109 def if @command.nil? if @raw_input.nil? super else return @raw_input.inspect() +": "+ super end else return @command.path.join(" ") +": "+ super end end |