if (e instanceof SVNAuthenticationException) {
if (e instanceof SVNAuthenticationException || e instanceof SVNCancelException) { throw e; } if (e.getMessage() == null || !e.getMessage().endsWith("path not found")) {
    public SVNNodeKind checkPath(String path, long revision) throws SVNException {        DAVBaselineInfo info = null;        SVNNodeKind kind = SVNNodeKind.NONE;        try {            openConnection();            path = getFullPath(path);            path = SVNEncodingUtil.uriEncode(path);            info = DAVUtil.getBaselineInfo(myConnection, path, revision, true, false, info);            kind = info.isDirectory ? SVNNodeKind.DIR : SVNNodeKind.FILE;        } catch (SVNException e) {            if (e instanceof SVNAuthenticationException) {                throw e;            }        } finally {            closeConnection();        }        return kind;    }