Package kyotocabinet

Examples of kyotocabinet.Error.code()


                // value deleted, ignoring error code
            } else if (error.code() == Error.NOREC) {
                //[code=22, message=no record found]
                throw new RecordNotFoundException("The record for key [0x" + HexUtil.toHexString(key) + "] was not found");
            } else {
                throw new DataStoreFatalException("Unable to delete record with key [0x" + HexUtil.toHexString(key) + "] [code=" + error.code() + ", message=" + error.message() + "]");
            }
        }
  Error error = db.error();
  if (error != null && error.code() != 0) logger.trace("Error on remove {} {} {}", HexUtil.toHexString(key), error.code(), error);
View Full Code Here


            } else {
                throw new DataStoreFatalException("Unable to delete record with key [0x" + HexUtil.toHexString(key) + "] [code=" + error.code() + ", message=" + error.message() + "]");
            }
        }
  Error error = db.error();
  if (error != null && error.code() != 0) logger.trace("Error on remove {} {} {}", HexUtil.toHexString(key), error.code(), error);

        // if synchronize interval is zero, sync() on every put() and take()
        if (this.synchronizeInterval == 0) {
            // syncing the b-tree database
            db.synchronize(false, null);
View Full Code Here

            } else {
                throw new DataStoreFatalException("Unable to delete record with key [0x" + HexUtil.toHexString(key) + "] [code=" + error.code() + ", message=" + error.message() + "]");
            }
        }
  Error error = db.error();
  if (error != null && error.code() != 0) logger.trace("Error on remove {} {} {}", HexUtil.toHexString(key), error.code(), error);

        // if synchronize interval is zero, sync() on every put() and take()
        if (this.synchronizeInterval == 0) {
            // syncing the b-tree database
            db.synchronize(false, null);
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.