Class: ExceptionHandler
- Inherits:
-
Object
- Object
- ExceptionHandler
- Defined in:
- lib/AuthenticationSDK/util/ExceptionHandler.rb
Instance Method Summary collapse
Instance Method Details
#new_api_exception(err) ⇒ Object
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/AuthenticationSDK/util/ExceptionHandler.rb', line 5 def new_api_exception(err) @exception_message = err. if !err.backtrace.to_s.empty? @exception_message += "\n" + err.backtrace end @exception_message += '\nEND> =======================================' return @exception_message end |
#new_api_warning(msg) ⇒ Object
16 17 18 19 |
# File 'lib/AuthenticationSDK/util/ExceptionHandler.rb', line 16 def new_api_warning(msg) @exception_message = msg return @exception_message end |
#new_custom_error(msg) ⇒ Object
21 22 23 24 25 |
# File 'lib/AuthenticationSDK/util/ExceptionHandler.rb', line 21 def new_custom_error(msg) @exception_message = msg @exception_message += '\nEND> =======================================' return @exception_message end |