public class ValidationException extends DBException
| Constructor and Description |
|---|
ValidationException(DBObject object,
java.lang.String message)
Constructs a new ValidationException.
|
ValidationException(DBObject object,
java.lang.String propName,
java.lang.String message)
Constructs a new ValidationException.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getPropertyName()
Gets the property name that this validation error is related to.
|
java.lang.String |
getTitle()
Gets a title for displaying this exception.
|
void |
setPropertyName(java.lang.String propName)
Sets the property name this validation error is related to.
|
append, getAllMessages, getMessage, getNextException, getObject, getRelatedObjects, setNextException, setRelatedObjectspublic ValidationException(DBObject object, java.lang.String message)
object - the object on which the validation failedmessage - a string containing a message describing the exceptionpublic ValidationException(DBObject object, java.lang.String propName, java.lang.String message)
object - the object on which the validation failedpropName - the property on object that is invalidmessage - a string containing a message describing the exceptionpublic java.lang.String getPropertyName()
public void setPropertyName(java.lang.String propName)
public java.lang.String getTitle()