Exception: B1Config::Exception
- Inherits:
-
StandardError
- Object
- StandardError
- B1Config::Exception
- Defined in:
- lib/b1_config/exception.rb
Instance Method Summary collapse
-
#initialize(code, args = {}) ⇒ Exception
constructor
A new instance of Exception.
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={} = defined?(::I18n) ? I18n.t("b1_config.e_#{code}",args) : code super end |