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.


471
472
473
474
# File 'lib/berkshelf/errors.rb', line 471

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

Instance Method Details

#to_sObject


476
477
478
479
# File 'lib/berkshelf/errors.rb', line 476

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