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.
35 36 37 38 |
# File 'lib/atk/console.rb', line 35 def initialize(, command_result) @message = @command_result = command_result end |
Instance Attribute Details
#command_result ⇒ Object
Returns the value of attribute command_result.
33 34 35 |
# File 'lib/atk/console.rb', line 33 def command_result @command_result end |
#message ⇒ Object
Returns the value of attribute message.
33 34 35 |
# File 'lib/atk/console.rb', line 33 def @message end |
Instance Method Details
#to_s ⇒ Object
40 41 42 |
# File 'lib/atk/console.rb', line 40 def to_s return @message end |