Class: ApiException
- Inherits:
-
Object
- Object
- ApiException
- Defined in:
- lib/AuthenticationSDK/util/ApiException.rb
Instance Method Summary collapse
- #apiexception(err, log_Obj) ⇒ Object
- #apiwarning(message, log_Obj) ⇒ Object
- #customerror(message, log_Obj) ⇒ Object
Instance Method Details
#apiexception(err, log_Obj) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/AuthenticationSDK/util/ApiException.rb', line 3 def apiexception(err,log_Obj) log_Obj.logger.error(err.) if !err.backtrace.to_s.empty? log_Obj.logger.error(err.backtrace) end log_Obj.logger.info('END> =======================================') puts 'Check log for more details.' end |
#apiwarning(message, log_Obj) ⇒ Object
11 12 13 |
# File 'lib/AuthenticationSDK/util/ApiException.rb', line 11 def apiwarning(,log_Obj) log_Obj.logger.warn() end |
#customerror(message, log_Obj) ⇒ Object
14 15 16 17 18 |
# File 'lib/AuthenticationSDK/util/ApiException.rb', line 14 def customerror(,log_Obj) log_Obj.logger.error() log_Obj.logger.info('END> =======================================') puts 'Check log for more details.' end |