Exception: CSL::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/csl/errors.rb

Direct Known Subclasses

ParseError, ValidationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original = $!) ⇒ Error

Returns a new instance of Error.



6
7
8
9
# File 'lib/csl/errors.rb', line 6

def initialize(message, original = $!)
  @original = original
  super(message)
end

Instance Attribute Details

#originalObject (readonly)

Returns the value of attribute original.



4
5
6
# File 'lib/csl/errors.rb', line 4

def original
  @original
end