class Haml::Error
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 37 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 49 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