Exception: B1Config::Exception

Inherits:
StandardError
  • Object
show all
Defined in:
lib/b1_config/exception.rb

Instance Method Summary collapse

Constructor Details

#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={}
  message = defined?(::I18n) ? I18n.t("b1_config.e_#{code}",args) : code
  super message
end