Exception: ExcADG::Payload::Wrapper::Bin::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- ExcADG::Payload::Wrapper::Bin::CommandFailed
- Defined in:
- lib/excadg/payload/wrapper.rb
Overview
exception with command execution result for cases when the command fails
Instance Method Summary collapse
-
#initialize(data) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
- #to_json(*args) ⇒ Object
Constructor Details
#initialize(data) ⇒ CommandFailed
Returns a new instance of CommandFailed.
44 45 46 47 |
# File 'lib/excadg/payload/wrapper.rb', line 44 def initialize data super 'command failed' @data = data end |
Instance Method Details
#to_json(*args) ⇒ Object
49 50 51 |
# File 'lib/excadg/payload/wrapper.rb', line 49 def to_json(*args) @data.to_json(*args) end |