60616263646566
throw new IllegalArgumentException("An OAuth2 resource must be supplied."); } this.resource = resource; this.context = context; setErrorHandler(new OAuth2ErrorHandler(resource)); }
878889909192939495
} @Override public void setErrorHandler(ResponseErrorHandler errorHandler) { if (!(errorHandler instanceof OAuth2ErrorHandler)) { errorHandler = new OAuth2ErrorHandler(errorHandler, resource); } super.setErrorHandler(errorHandler); }