Parent

Methods

Class Index [+]

Quicksearch

Webgen::RenderError

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

Attributes

error_alcn[RW]

The alcn of the file where the error happened. This can be different from # (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.

Public Class Methods

new(msg_or_error, class_name = nil, alcn = nil, error_alcn = nil, line = nil) click to toggle source

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

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.