Exception: Haml::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/haml/error.rb

Overview

TODO: unify Haml::Error (former Hamlit::Error) and Haml::HamlError (former Haml::Error)

Direct Known Subclasses

FilterNotFound, InternalError, SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil, line = nil) ⇒ Error

Returns a new instance of Error.



7
8
9
10
# File 'lib/haml/error.rb', line 7

def initialize(message = nil, line = nil)
  super(message)
  @line = line
end

Instance Attribute Details

#lineObject (readonly)

Returns the value of attribute line.



5
6
7
# File 'lib/haml/error.rb', line 5

def line
  @line
end