Method: CoreLibrary::ResponseHandler#local_error
- Defined in:
- lib/apimatic-core/response_handler.rb
#local_error(error_code, error_message, exception_type) ⇒ ResponseHandler
Registers an entry with error message in the local errors hash.
51 52 53 54 55 56 |
# File 'lib/apimatic-core/response_handler.rb', line 51 def local_error(error_code, , exception_type) @local_errors[error_code.to_s] = ErrorCase.new .() .exception_type(exception_type) self end |