Exception: Albacore::CommandFailedError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/albacore/errors/command_failed_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, executable, output = nil) ⇒ CommandFailedError

Returns a new instance of CommandFailedError.



8
9
10
11
12
# File 'lib/albacore/errors/command_failed_error.rb', line 8

def initialize message, executable, output = nil
  super(message)
  @executable = executable
  @output = output
end

Instance Attribute Details

#executableObject (readonly)

Returns the value of attribute executable.



4
5
6
# File 'lib/albacore/errors/command_failed_error.rb', line 4

def executable
  @executable
end

#outputObject (readonly)

Returns the value of attribute output.



6
7
8
# File 'lib/albacore/errors/command_failed_error.rb', line 6

def output
  @output
end

Instance Method Details

#messageObject



14
15
16
17
18
19
# File 'lib/albacore/errors/command_failed_error.rb', line 14

def message
  s = StringIO.new
  s.puts super
  s.puts output if output
  s.string
end