Examples of FDBException


Examples of com.foundationdb.FDBException

    public static RuntimeException wrapFDBException(Session session, Exception e)
    {
        if (isFromInterruption(e)) {
            return new QueryCanceledException(session);
        } else if (e instanceof FDBException) {
            FDBException fdbEx = (FDBException)e;
            switch (fdbEx.getCode()) {
            case 1007:          // past_version
                return new FDBPastVersionException(fdbEx);
            case 1009:          // future_version
                return new FDBFutureVersionException(fdbEx);
            case 1020:          // not_committed
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.