class Aws::SessionStore::DynamoDB::RackMiddleware

def handle_error(env = nil)

exceptions to the configured session handler.
This wrapper will call the method, rescue any exceptions and then pass
Each database operation is placed in this rescue wrapper.
def handle_error(env = nil)
  yield
rescue Aws::DynamoDB::Errors::Base,
       Aws::SessionStore::DynamoDB::Errors::InvalidIDError => e
  @config.error_handler.handle_error(e, env)
end