Exception: NewRelic::Command::CommandFailure

Inherits:
StandardError
  • Object
show all
Defined in:
lib/new_relic/command.rb

Overview

Capture a failure to execute the command.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, opt_parser = nil) ⇒ CommandFailure

Returns a new instance of CommandFailure.



17
18
19
20
# File 'lib/new_relic/command.rb', line 17

def initialize message, opt_parser=nil
  super message
  @options = opt_parser
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



16
17
18
# File 'lib/new_relic/command.rb', line 16

def options
  @options
end