Method: B1Config::Exception#initialize
- Defined in:
- lib/b1_config/exception.rb
#initialize(code, args = {}) ⇒ Exception
Returns a new instance of Exception.
3 4 5 6 |
# File 'lib/b1_config/exception.rb', line 3 def initialize code,args={} = defined?(::I18n) ? I18n.t("b1_config.e_#{code}",args) : code super end |