Parent

Methods

Class/Module 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 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.

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 68
def initialize(msg_or_error, class_name = nil, alcn = nil, error_alcn = nil, line = nil)
  super(msg_or_error, class_name, alcn)
  @error_alcn, @line = (error_alcn.kind_of?(Node) ? error_alcn.to_s : error_alcn), line
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.