Exception: ExcADG::Payload::Wrapper::Bin::CommandFailed

Inherits:
StandardError
  • Object
show all
Defined in:
lib/excadg/payload/wrapper.rb

Overview

exception with command execution result for cases when the command fails

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ CommandFailed

Returns a new instance of CommandFailed.

Parameters:

  • data

    same data as what would be returned by a successful run



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