| | |
| | | } |
| | | catch (Throwable t) |
| | | { |
| | | if (!(t instanceof InterruptedNamingException)) |
| | | if (!isInterruptedException(t)) |
| | | { |
| | | EntryReadErrorEvent ev = new EntryReadErrorEvent(this, dn, t); |
| | | entryPane.entryReadError(ev); |
| | |
| | | return menu; |
| | | } |
| | | } |
| | | |
| | | private boolean isInterruptedException(Throwable t) |
| | | { |
| | | boolean isInterruptedException = false; |
| | | isInterruptedException = t instanceof java.io.InterruptedIOException || |
| | | t instanceof InterruptedNamingException; |
| | | while ((t != null) && !isInterruptedException) |
| | | { |
| | | t = t.getCause(); |
| | | isInterruptedException = t instanceof java.io.InterruptedIOException || |
| | | t instanceof InterruptedNamingException; |
| | | } |
| | | return isInterruptedException; |
| | | } |
| | | } |