Class: AWS::SessionStore::DynamoDB::Errors::BaseHandler
- Inherits:
-
Object
- Object
- AWS::SessionStore::DynamoDB::Errors::BaseHandler
- Defined in:
- lib/aws/session_store/dynamo_db/errors/base_handler.rb
Overview
BaseErrorHandler provides an interface for error handlers that can be passed in to RackMiddleware. Each error handler must implement a handle_error method.
Direct Known Subclasses
Instance Method Summary collapse
-
#handle_error(error, env = {}) ⇒ false
An error and an environment (optionally) will be passed in to this method and it will determine how to deal with the error.
Instance Method Details
#handle_error(error, env = {}) ⇒ false
An error and an environment (optionally) will be passed in to this method and it will determine how to deal with the error. Must return false if you have handled the error but are not reraising the error up the stack. You may reraise the error passed.
41 42 43 |
# File 'lib/aws/session_store/dynamo_db/errors/base_handler.rb', line 41 def handle_error(error, env = {}) raise NotImplementedError end |