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



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