Class: Kharon::Handlers::Exceptions
- Inherits:
-
Object
- Object
- Kharon::Handlers::Exceptions
- Includes:
- Singleton
- Defined in:
- lib/kharon/handlers/exceptions.rb
Overview
Errors handler that raises exception as soon as a problem is encountered during validation.
Instance Method Summary (collapse)
-
- (Object) report_error(error_hash)
Method used to report an error by raising the correct type of exception.
Instance Method Details
- (Object) report_error(error_hash)
Method used to report an error by raising the correct type of exception.
14 15 16 |
# File 'lib/kharon/handlers/exceptions.rb', line 14 def report_error(error_hash) raise Kharon::Errors::Validation.new(error_hash) end |