Method: Webgen::RenderError#initialize

Defined in:
lib/webgen/error.rb

#initialize(msg_or_error, location = nil, path = nil, error_path = nil, line = nil) ⇒ RenderError

Create a new RenderError.



78
79
80
81
82
# File 'lib/webgen/error.rb', line 78

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