Class | Webgen::RenderError |
In: |
lib/webgen/error.rb
|
Parent: | Error |
This error is raised when an error condition occurs during rendering of a node.
error_alcn | [RW] | The alcn of the file where the error happened. This can be different from alcn (e.g. a page file is rendered but the error happens in a used template). |
line | [RW] | The line number in the error_alcn where the errror happened. |
Create a new RenderError using the provided values.
If msg_or_error is a String, it is treated as the error message. If it is an exception, the exception is wrapped.
# File lib/webgen/error.rb, line 69 69: def initialize(msg_or_error, class_name = nil, alcn = nil, error_alcn = nil, line = nil) 70: super(msg_or_error, class_name, alcn) 71: @error_alcn, @line = (error_alcn.kind_of?(Node) ? error_alcn.to_s : error_alcn), line 72: end