class Webgen::RenderError
This error is raised when an error condition occurs during rendering of a node.
Attributes
error_path[RW]
The path of the file where the error happened. This can be different from path (e.g. a page file is rendered but the error happens in a used template).
line[RW]
The line number in the error_path where the errror happened.
Public Class Methods
new(msg_or_error, location = nil, path = nil, error_path = nil, line = nil)
click to toggle source
Create a new RenderError.
Calls superclass method
Webgen::Error.new
# File lib/webgen/error.rb, line 77 def initialize(msg_or_error, location = nil, path = nil, error_path = nil, line = nil) super(msg_or_error, location, path) @error_path = error_path || (Exception === msg_or_error ? self.class.error_file(msg_or_error) : nil) @line = line || (Exception === msg_or_error ? self.class.error_line(msg_or_error) : nil) end