Module: Infreemation::Errors
- Defined in:
- lib/infreemation/errors.rb
Overview
This module is responsible for mapping error codes into the correct type to exception class
Class Method Summary collapse
Class Method Details
.[](code) ⇒ Object
63 64 65 |
# File 'lib/infreemation/errors.rb', line 63 def self.[](code) ERROR_MAPPINGS[code.to_i] || GenericError end |