if(statusAdapter.getStatus().matches(IStatus.ERROR)) {
- IStatus status = statusAdapter.getStatus();
Throwable t = statusAdapter.getStatus().getException();
// NOTE : the global status handling mechanism in the case of
// runtime exceptions is called twice, once by the application
return;
}
previousT = t;
- if (t != null && (t.getCause() != null && t.getCause() instanceof PermissionDeniedException)){
- MessagingUtils.informationDialog("Permission denied", MessagingUtils.PERMISSION_DENIED);
-
- }
- else if (t != null && ( t instanceof NoHttpResponseException || (t.getCause() != null && t.getCause() instanceof CdmAuthenticationException) || (t.getMessage() != null && t.getMessage().contains("status code = 403")))){
+ if (t != null && (t.getCause() != null && t.getCause() instanceof PermissionDeniedException)){
+ MessagingUtils.informationDialog("Permission denied", MessagingUtils.PERMISSION_DENIED);
+ }
+ else if (t != null && ( t instanceof NoHttpResponseException || (t.getCause() != null && t.getCause() instanceof CdmAuthenticationException) || (t.getMessage() != null && t.getMessage().contains("status code = 403")))){
MessagingUtils.informationDialog("Access denied", MessagingUtils.ACCESS_DENIED);
-
}else
// NOTE : Currently we only allow RuntimeExceptions since