Exception: Fu::Error
- Inherits:
-
StandardError
- Object
- StandardError
- Fu::Error
- Defined in:
- lib/fu/error.rb
Overview
An exception raised by Fu code.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#position ⇒ Fixnum
readonly
The line of the template on which the error occurred.
Instance Method Summary collapse
-
#initialize(message = nil, position = nil) ⇒ Error
constructor
A new instance of Error.
Constructor Details
#initialize(message = nil, position = nil) ⇒ Error
Returns a new instance of Error.
11 12 13 14 |
# File 'lib/fu/error.rb', line 11 def initialize( = nil, position = nil) super() @position = position end |
Instance Attribute Details
#position ⇒ Fixnum (readonly)
The line of the template on which the error occurred.
7 8 9 |
# File 'lib/fu/error.rb', line 7 def position @position end |