db4o 7.4

com.db4o.constraints
Class UniqueFieldValueConstraintViolationException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.db4o.foundation.ChainedRuntimeException
                  extended by com.db4o.ext.Db4oException
                      extended by com.db4o.constraints.ConstraintViolationException
                          extended by com.db4o.constraints.UniqueFieldValueConstraintViolationException
All Implemented Interfaces:
java.io.Serializable

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), Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class com.db4o.foundation.ChainedRuntimeException
com.db4o.foundation.ChainedRuntimeException.ChainedRuntimeExceptionMixin
 
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.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, 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 7.4

Copyright 2007 db4objects Inc. All rights reserved.