示例#1
0
 @Override
 public AuthContext login() {
   super.login();
   try {
     client.login();
   } catch (SocketTimeoutException ste) {
     throw new AuthTimeoutException(ste);
   } catch (ConnectTimeoutException cte) {
     throw new AuthTimeoutException(cte);
   } catch (InterruptedIOException ie) {
     throw new AuthInterruptedException(ie);
   } catch (SwiftAuthClientException se) {
     throw new AuthException(se.getMessage(), se);
   } catch (Exception e) {
     throw new AuthException(e);
   }
   return createContext();
 }