Exception: CommandResult::Error
- Inherits:
-
Exception
- Object
- Exception
- CommandResult::Error
- Defined in:
- lib/atk/console.rb
Instance Attribute Summary collapse
-
#command_result ⇒ Object
Returns the value of attribute command_result.
-
#message ⇒ Object
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, command_result) ⇒ Error
constructor
A new instance of Error.
- #to_s ⇒ Object
Constructor Details
#initialize(message, command_result) ⇒ Error
Returns a new instance of Error.
37 38 39 40 |
# File 'lib/atk/console.rb', line 37 def initialize(, command_result) @message = @command_result = command_result end |
Instance Attribute Details
#command_result ⇒ Object
Returns the value of attribute command_result.
35 36 37 |
# File 'lib/atk/console.rb', line 35 def command_result @command_result end |
#message ⇒ Object
Returns the value of attribute message.
35 36 37 |
# File 'lib/atk/console.rb', line 35 def @message end |
Instance Method Details
#to_s ⇒ Object
42 43 44 |
# File 'lib/atk/console.rb', line 42 def to_s return @message end |