Exception: Fu::Error

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

Overview

An exception raised by Fu code.

Direct Known Subclasses

SyntaxError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Error.

Parameters:

  • message (String) (defaults to: nil)

    The error message

  • line (Fixnum)

    See #line



11
12
13
14
# File 'lib/fu/error.rb', line 11

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

Instance Attribute Details

#positionFixnum (readonly)

The line of the template on which the error occurred.

Returns:

  • (Fixnum)


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

def position
  @position
end