db4o 6.3

com.db4o.constraints
Class UniqueFieldValueConstraintViolationException

java.lang.Object
  extended by ChainedRuntimeException
      extended by com.db4o.ext.Db4oException
          extended by com.db4o.constraints.ConstraintViolationException
              extended by com.db4o.constraints.UniqueFieldValueConstraintViolationException

public class UniqueFieldValueConstraintViolationException
extends ConstraintViolationException

db4o-specific exception.

This exception can be thrown by a UniqueFieldValueConstraint on commit.

See Also:
ObjectField.indexed(boolean), Configuration.add(com.db4o.config.ConfigurationItem)

Constructor Summary
UniqueFieldValueConstraintViolationException(java.lang.String className, java.lang.String fieldName)
          Constructor with a message composed from the class and field name of the entity causing the exception.
 
Method Summary
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniqueFieldValueConstraintViolationException

public UniqueFieldValueConstraintViolationException(java.lang.String className,
                                                    java.lang.String fieldName)
Constructor with a message composed from the class and field name of the entity causing the exception.

Parameters:
className - class, which caused the exception
fieldName - field, which caused the exception

db4o 6.3