Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fun register(exceptionClass: Any, handler: (JsonError?) -> Unit): ExceptionHandler {
- if (exceptionClass !is Exception) {
- Logger.e("Can't register non exception class to the ExceptionHandler ${exceptionClass}")
- }
- mExceptionMap[exceptionClass] = handler
- return this
- }
- passing: UnknownHostException.class
- if statement is always false
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement