Class: YmlErrorResponder::ErrorHandlers::UnknowErrorHandler
- Inherits:
-
BaseErrorHandler
- Object
- BaseErrorHandler
- YmlErrorResponder::ErrorHandlers::UnknowErrorHandler
- Defined in:
- lib/yml_error_responder/error_handlers/unknow_error_handler.rb
Instance Attribute Summary
Attributes inherited from BaseErrorHandler
Instance Method Summary collapse
-
#initialize ⇒ UnknowErrorHandler
constructor
A new instance of UnknowErrorHandler.
Methods inherited from BaseErrorHandler
Constructor Details
#initialize ⇒ UnknowErrorHandler
Returns a new instance of UnknowErrorHandler.
4 5 6 7 8 9 10 |
# File 'lib/yml_error_responder/error_handlers/unknow_error_handler.rb', line 4 def initialize @handler_data = { http_code: :internal_server_error, error_code: :unknow_error, description: 'Something went wrong.' } end |