module ROM::SQL::Commands::ErrorWrapper
Shared error handler for all SQL
commands
@api private
Public Instance Methods
call(*args)
click to toggle source
Handle Sequel errors and re-raise ROM-specific errors
@return [Hash, Array<Hash>]
@raise SQL::Error
@api public
Calls superclass method
# File lib/rom/sql/commands/error_wrapper.rb, line 17 def call(*args) super rescue *ERROR_MAP.keys => e raise ERROR_MAP.fetch(e.class, Error), e end
Also aliased as: []