Class: ApiException

Inherits:
Object
  • Object
show all
Defined in:
lib/AuthenticationSDK/util/ApiException.rb

Instance Method Summary collapse

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.message)
  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(message,log_Obj)
  log_Obj.logger.warn(message)
end

#customerror(message, log_Obj) ⇒ Object



14
15
16
17
18
# File 'lib/AuthenticationSDK/util/ApiException.rb', line 14

def customerror(message,log_Obj)
  log_Obj.logger.error(message)
  log_Obj.logger.info('END> =======================================')
  puts 'Check log for more details.'
end