AmbiguousVersionException.java :  » Database-DBMS » perst » org » garret » perst » continuous » Java Open Source

Java Open Source » Database DBMS » perst 
perst » org » garret » perst » continuous » AmbiguousVersionException.java
package org.garret.perst.continuous;

/**
 * Exception thrown when application tries to update more than one version from the same version history within one transaction
 */
public class AmbiguousVersionException extends ContinuousException 
{
    /**
     * Get version which update attempt was rejected
     */
    public CVersion getVersion() { 
        return v;
    }

    AmbiguousVersionException(CVersion v) { 
        super("Attempt to update more than one version from the same version history in one transaction");
        this.v = v;
    }

    private CVersion v;
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.