org.makumba
Class InvalidValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.makumba.InvalidValueException
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- NotUniqueException
public class InvalidValueException
- extends RuntimeException
This exception occurs when an invalid value is passed to a field
- See Also:
- Serialized Form
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
field
protected String field
shortMessage
protected String shortMessage
InvalidValueException
public InvalidValueException(String message)
InvalidValueException
public InvalidValueException(String field,
String message)
InvalidValueException
public InvalidValueException(FieldDefinition fi,
String message)
InvalidValueException
public InvalidValueException(FieldDefinition fi,
Class<?> requiredClass,
Object value)
- form an exception message from the required type and the pointer that doesn't respect it
InvalidValueException
public InvalidValueException(FieldDefinition fi,
String requiredType,
Pointer wrongPointer)
- form an exception message from the required type and the pointer that doesn't respect it
InvalidValueException
public InvalidValueException(Pointer comparedPointer,
Pointer wrongPointer)
- form an exception message from the compared pointer and the pointer that doesn't match its type
getFieldName
public String getFieldName()
getShortMessage
public String getShortMessage()