Exception: Berkshelf::GraphvizCommandFailed
- Inherits:
-
BerkshelfError
- Object
- StandardError
- BerkshelfError
- Berkshelf::GraphvizCommandFailed
- Defined in:
- lib/berkshelf/errors.rb
Instance Method Summary collapse
-
#initialize(command, output) ⇒ GraphvizCommandFailed
constructor
A new instance of GraphvizCommandFailed.
- #to_s ⇒ Object (also: #message)
Methods inherited from BerkshelfError
Constructor Details
#initialize(command, output) ⇒ GraphvizCommandFailed
Returns a new instance of GraphvizCommandFailed.
520 521 522 523 |
# File 'lib/berkshelf/errors.rb', line 520 def initialize(command, output) @command = command @output = output end |
Instance Method Details
#to_s ⇒ Object Also known as: message
525 526 527 528 |
# File 'lib/berkshelf/errors.rb', line 525 def to_s "The Graphviz command `#{@command}` failed to execute properly. Here " \ "is the standard error from the command:\n\n#{@output}" end |