Advertisement
Guest User

Untitled

a guest
May 22nd, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fun register(exceptionClass: Any, handler: (JsonError?) -> Unit): ExceptionHandler {
  2.         if (exceptionClass !is Exception) {
  3.             Logger.e("Can't register non exception class to the ExceptionHandler ${exceptionClass}")
  4.         }
  5.         mExceptionMap[exceptionClass] = handler
  6.         return this
  7.     }
  8.  
  9. passing: UnknownHostException.class
  10.  
  11. if statement is always false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement