Exception: Berkshelf::GraphvizCommandFailed

Inherits:
BerkshelfError
  • Object
show all
Defined in:
lib/berkshelf/errors.rb

Instance Method Summary collapse

Methods inherited from BerkshelfError

set_status_code

Constructor Details

#initialize(command, output) ⇒ GraphvizCommandFailed

Returns a new instance of GraphvizCommandFailed.



517
518
519
520
# File 'lib/berkshelf/errors.rb', line 517

def initialize(command, output)
  @command = command
  @output  = output
end

Instance Method Details

#to_sObject Also known as: message



522
523
524
525
# File 'lib/berkshelf/errors.rb', line 522

def to_s
  "The Graphviz command `#{@command}` failed to execute properly. Here " \
  "is the standard error from the command:\n\n#{@output}"
end