Exception: Haml::Error

Inherits:
StandardError
  • Object
show all
Defined in:
/var/www/sass-pages/.haml/lib/haml/error.rb

Overview

An exception raised by Haml code.

Direct Known Subclasses

SyntaxError

Instance Attribute Summary

Instance Method Summary

Constructor Details

- (Error) initialize(message = nil, line = nil)

A new instance of Error

Parameters:

  • (String) message (defaults to: nil) — The error message
  • (Fixnum) line (defaults to: nil) — See #line


11
12
13
14
# File '/var/www/sass-pages/.haml/lib/haml/error.rb', line 11

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

Instance Attribute Details

- (Fixnum) line (readonly)

The line of the template on which the error occurred.

Returns:

  • (Fixnum)


7
8
9
# File '/var/www/sass-pages/.haml/lib/haml/error.rb', line 7

def line
  @line
end