log.error( e.getMessage(), e );
if ( IErrorCodes.EXCEPTION_AUTHENTICATION_FAILED.equals( e.getMessage() ) ) {
throw new GWTAuthenticationException( e.getMessage() );
}
else if ( IErrorCodes.EXCEPTION_CONNECT.equals( e.getMessage() ) ) {
throw new GWTConnectionException( e.getMessage() );
}
else {
throw new GWTLoginException( e.getMessage() );
}
}