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.
43 44 45 46 |
# File 'lib/excadg/payload/wrapper.rb', line 43 def initialize data super 'command failed' @data = data end |
Instance Method Details
#to_json(*args) ⇒ Object
48 49 50 |
# File 'lib/excadg/payload/wrapper.rb', line 48 def to_json(*args) @data.to_json(*args) end |