private void handleAuthorizationFailure ( Response response , Throwable t , JSONObject extendedInfo ) { logger . error ( "authorization process failed" ) ; if ( t != null ) { t . printStackTrace ( ) ; } Iterator < ResponseListener > iterator = authorizationQueue . iterator ( ) ; while ( iterator . hasNext ( ) ) { ResponseListener next = iterator . next ( ) ; next . onFailure ( response , t , extendedInfo ) ; iterator . remove ( ) ; } }
Handle failure in the authorization process . All the response listeners will be updated with failure