Last update: 2011-06-23

org.proteios.core
Class ItemAlreadyExistsException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.proteios.core.BaseException
                  extended by org.proteios.core.InvalidDataException
                      extended by org.proteios.core.ItemAlreadyExistsException
All Implemented Interfaces:
Serializable

public class ItemAlreadyExistsException
extends InvalidDataException

This exception is thrown when trying to save an object and another object with the same ID already exists.

Version:
2.0
Author:
Nicklas
See Also:
Serialized Form

Constructor Summary
ItemAlreadyExistsException(String what)
          Creates a new ItemAlreadyExistsException.
 
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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ItemAlreadyExistsException

public ItemAlreadyExistsException(String what)
Creates a new ItemAlreadyExistsException. The error message produced will look like: Item already exists: User[Login=peter]

Parameters:
what - A description of what already exists, for example User[Login=peter]

Last update: 2011-06-23