Exception: Heroku::Commander::Errors::CommandError

Inherits:
Base
  • Object
show all
Defined in:
lib/heroku/commander/errors/command_error.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#problem, #resolution, #summary

Instance Method Summary collapse

Methods inherited from Base

#compose_message

Constructor Details

#initialize(opts = {}) ⇒ CommandError

Returns a new instance of CommandError.



8
9
10
11
12
13
14
15
# File 'lib/heroku/commander/errors/command_error.rb', line 8

def initialize(opts = {})
  @inner_exception = opts[:inner_exception]
  opts = opts.dup
  prepare_lines(opts)
  prepare_status_message(opts)
  prepare_pid(opts)
  super(compose_message("command_error", opts))
end

Instance Attribute Details

#inner_exceptionObject

Returns the value of attribute inner_exception.



6
7
8
# File 'lib/heroku/commander/errors/command_error.rb', line 6

def inner_exception
  @inner_exception
end