Exception: ROM::SQL::Error

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(original_exception) ⇒ Error

Returns a new instance of Error.


8
9
10
11
12
# File 'lib/rom/sql/error.rb', line 8

def initialize(original_exception)
  super(original_exception.message)
  @original_exception = original_exception
  set_backtrace(original_exception.backtrace)
end

Instance Attribute Details

#original_exceptionObject (readonly)

Returns the value of attribute original_exception


6
7
8
# File 'lib/rom/sql/error.rb', line 6

def original_exception
  @original_exception
end