Package com.foundationdb.server.error

Examples of com.foundationdb.server.error.FDBAdapterException


    private void checkDataVersions(TransactionState txn) {
        Boolean isCompatible = isDataCompatible(txn, false);
        // Can only be missing if clear()-ed outside SQL Layer. Give clear message but no recovery attempt.
        if(isCompatible == null) {
            throw new FDBAdapterException(EXTERNAL_CLEAR_MSG);
        }
        if(isCompatible == Boolean.FALSE) {
            throw new FDBAdapterException(EXTERNAL_VER_CHANGE_MSG);
        }
        assert isCompatible;
    }
View Full Code Here


    private long getTransactionalGeneration(TransactionState txn) {
        byte[] packedGen;
        packedGen = txn.getValue(packedGenKey);
        if(packedGen == null) {
            throw new FDBAdapterException(EXTERNAL_CLEAR_MSG);
        }
        return Tuple2.fromBytes(packedGen).getLong(0);
    }
View Full Code Here

            case 1020:          // not_committed
                return new FDBNotCommittedException(fdbEx);
            case 1021:          // commit_unknown_result
                return new FDBCommitUnknownResultException(fdbEx);
            default:
                return new FDBAdapterException(fdbEx);
            }
        } else if (e instanceof RuntimeException) {
            return (RuntimeException)e;
        } else {
            return new AkibanInternalException("unexpected error from data layer", e);
View Full Code Here

TOP

Related Classes of com.foundationdb.server.error.FDBAdapterException

Copyright © 2018 www.massapicom. 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.