Method: CoreLibrary::ResponseHandler#local_error_template
- Defined in:
- lib/apimatic-core/response_handler.rb
#local_error_template(error_code, error_message_template, exception_type) ⇒ ResponseHandler
Registers an entry with error template in the local errors hash.
63 64 65 66 67 68 |
# File 'lib/apimatic-core/response_handler.rb', line 63 def local_error_template(error_code, , exception_type) @local_errors[error_code.to_s] = ErrorCase.new .() .exception_type(exception_type) self end |