Exception: Webgen::NodeCreationError

Inherits:
Error
  • Object
show all
Defined in:
lib/webgen/error.rb

Overview

This error is raised when an error condition occurs during the creation of a node.

Instance Attribute Summary

Attributes inherited from Error

#location, #path

Instance Method Summary collapse

Methods inherited from Error

error_file, error_line, #initialize

Constructor Details

This class inherits a constructor from Webgen::Error

Instance Method Details

#messageObject

:nodoc:



56
57
58
59
60
61
62
# File 'lib/webgen/error.rb', line 56

def message # :nodoc:
  msg = 'Error'
  msg << " at #{@location}" if @location
  msg << ' while creating a node'
  msg << (!@path.to_s.empty? ? " from <#{@path}>" : '')
  msg << ":\n    " << super(true)
end