Class: YmlErrorResponder::ErrorHandlers::UnknowErrorHandler

Inherits:
BaseErrorHandler show all
Defined in:
lib/yml_error_responder/error_handlers/unknow_error_handler.rb

Instance Attribute Summary

Attributes inherited from BaseErrorHandler

#error, #handler_data

Instance Method Summary collapse

Methods inherited from BaseErrorHandler

#as_json, #http_code, #meta

Constructor Details

#initializeUnknowErrorHandler

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