Exception: PFA::PFAFatalError
- Inherits:
-
StandardError
- Object
- StandardError
- PFA::PFAFatalError
- Defined in:
- lib/pfa/errors_manager.rb
Instance Method Summary collapse
-
#initialize(err_num, params = nil) ⇒ PFAFatalError
constructor
A new instance of PFAFatalError.
Constructor Details
#initialize(err_num, params = nil) ⇒ PFAFatalError
Returns a new instance of PFAFatalError.
4 5 6 7 8 |
# File 'lib/pfa/errors_manager.rb', line 4 def initialize(err_num, params = nil) err_msg = ERRORS[err_num] err_msg = err_msg % params unless params.nil? super(err_msg) end |