class Haml::Error
An exception raised by Haml
code.
Constants
- MESSAGES
Attributes
The line of the template on which the error occurred.
@return [Fixnum]
Public Class Methods
Source
# File lib/haml/error.rb, line 40 def self.message(key, *args) string = MESSAGES[key] or raise "[HAML BUG] No error messages for #{key}" (args.empty? ? string : string % args).rstrip end
Source
# File lib/haml/error.rb, line 52 def initialize(message = nil, line = nil) super(message) @line = line end
@param message [String] The error message @param line [Fixnum] See {#line}
Calls superclass method