org.gcube.contentmanagement.baselayer.exceptions
Class DuplicateIDException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.gcube.contentmanagement.baselayer.exceptions.BaseLayerException
              extended by org.gcube.contentmanagement.baselayer.exceptions.ValueNotValidException
                  extended by org.gcube.contentmanagement.baselayer.exceptions.DuplicateIDException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateIDException
extends ValueNotValidException

Indicates that an ID was duplicated, so an object with this ID already existed. The ID that caused the problem is treated as invalid and therefore returned through the inherited methods.

Author:
michaelspringmann
See Also:
Serialized Form

Constructor Summary
DuplicateIDException(java.lang.String message, java.lang.String id)
          Constructor for a new exception
 
Method Summary
 
Methods inherited from class org.gcube.contentmanagement.baselayer.exceptions.ValueNotValidException
getInvalidValue, getInvalidValueName
 
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

DuplicateIDException

public DuplicateIDException(java.lang.String message,
                            java.lang.String id)
Constructor for a new exception

Parameters:
message - the message explaining the exception
id - the ID that duplicated