Package com.samskivert.depot

Examples of com.samskivert.depot.DatabaseException


            if (updateStat(playerId, tstat, false)) {
                return tstat;
            }
        }

        throw new DatabaseException(
            "Unable to update stat after " + MAX_UPDATE_TRIES + " attempts " +
            "[stat=" + modifier.getType() + ", pid=" + playerId + "]");
    }
View Full Code Here


    {
        ByteArrayOutInputStream out = new ByteArrayOutInputStream();
        try {
            stat.persistTo(new ObjectOutputStream(out), this);
        } catch (IOException ioe) {
            throw new DatabaseException("Error serializing stat " + stat, ioe);
        }

        byte[] data = out.toByteArray();
        byte nextModCount = (byte)((stat.getModCount() + 1) % Byte.MAX_VALUE);
        Key<StatRecord> key = StatRecord.getKey(playerId, stat.getCode());
View Full Code Here

                // otherwise someone used the code we were trying to use and we just need to loop
                // around and get the next highest code
                log.info("Code collision assigning string code", "type", type, "value", value);
            }
        }
        throw new DatabaseException(
            "Unable to assign code after 10 attempts [type=" + type + ", value=" + value + "]");
    }
View Full Code Here

TOP

Related Classes of com.samskivert.depot.DatabaseException

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.