org.gcube.contentmanagement.baselayer.exceptions
Class ValueNotValidException

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DuplicateIDException, ObjectNotFoundException

public class ValueNotValidException
extends BaseLayerException

Exception that indicates that a value was invalid

Author:
michaelspringmann
See Also:
Serialized Form

Constructor Summary
ValueNotValidException(java.lang.String message, java.lang.String invalidValue, java.lang.String invalidValueName)
          Constructs a new exception
 
Method Summary
 java.lang.String getInvalidValue()
          Returns the value that was invalid
 java.lang.String getInvalidValueName()
          Returns the name of the value that was invalid
 
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

ValueNotValidException

public ValueNotValidException(java.lang.String message,
                              java.lang.String invalidValue,
                              java.lang.String invalidValueName)
Constructs a new exception

Parameters:
message - the human-readable message
invalidValue - the value that was invalid
invalidValueName - the name of the value that was invalid
Method Detail

getInvalidValue

public java.lang.String getInvalidValue()
Returns the value that was invalid

Returns:
the value

getInvalidValueName

public java.lang.String getInvalidValueName()
Returns the name of the value that was invalid

Returns:
the name o the value