Exception: PFA::PFAFatalError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/pfa/errors_manager.rb

Instance Method Summary collapse

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