Module Haml::Error
In: lib/haml/error.rb

The abstract type of exception raised by Haml code. Haml::SyntaxError includes this module, as do all exceptions raised by Ruby code within Haml.

Haml::Error encapsulates information about the exception, such as the line of the Haml template it was raised on and the Haml file that was being parsed (if applicable). It also provides a handy way to rescue only exceptions raised because of a faulty template.

Attributes

haml_filename  [R]  The name of the file that was being parsed when the exception was raised. This will be nil unless Haml is being used as an ActionView plugin.
haml_line  [R]  The line of the Haml template on which the exception was thrown.

[Validate]