Parent class for all specific exceptions which wrap database driver exceptions provides access to the original exception also.
Source: show | on GitHub
# File activerecord/lib/active_record/errors.rb, line 70 def initialize(message, original_exception) super(message) @original_exception = original_exception end