Exception: Jerry::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/jerry/errors.rb

Overview

Base error class for Jerry that allows recording causing exceptions

Direct Known Subclasses

InstantiationError

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message = nil) ⇒ Error

Returns a new instance of Error.



8
9
10
11
# File 'lib/jerry/errors.rb', line 8

def initialize(message = nil)
  super
  @cause = $ERROR_INFO
end

Instance Attribute Details

#causeObject (readonly)

Returns the value of attribute cause.



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

def cause
  @cause
end