module Infreemation::Errors
This module is responsible for mapping error codes into the correct type to exception class
Public Class Methods
[](code)
click to toggle source
# File lib/infreemation/errors.rb, line 63 def self.[](code) ERROR_MAPPINGS[code.to_i] || GenericError end