Exception: EasyCommand::CommandError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- EasyCommand::CommandError
- Defined in:
- lib/easy_command.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil, code = nil) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(message = nil, code = nil) ⇒ CommandError
Returns a new instance of CommandError.
20 21 22 23 |
# File 'lib/easy_command.rb', line 20 def initialize( = nil, code = nil) @code = code super() end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
18 19 20 |
# File 'lib/easy_command.rb', line 18 def code @code end |