org.makumba
Class NotUniqueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.makumba.InvalidValueException
org.makumba.NotUniqueException
- All Implemented Interfaces:
- Serializable
public class NotUniqueException
- extends InvalidValueException
Not-unique is a special case of an InvalidValueException
- the value is syntactically correct, but is
restricted to only one usage. This exception can be used for single-field and multi-field uniqueness with the
respective constructors.
- Version:
- $Id: NotUniqueException.java 5136 2010-05-18 18:22:33Z rosso_nero $
- Author:
- Rudolf Mayer
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
NotUniqueException
public NotUniqueException(String message)
NotUniqueException
public NotUniqueException(String primaryField,
String message)
NotUniqueException
public NotUniqueException(FieldDefinition fd,
Object value)
- Uniqueness violation for a single field.
getFields
public Map<String,String> getFields()
- gets the field-value pairs for the conflicting fields
setFields
public void setFields(Map<String,String> fields)