|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object blackboard.data.ValidationWarning
public class ValidationWarning
Class used to encapsulate data validity violations. This object is created
and added to a ValidationException, which can chain multiple
ValidationWarnings
together to give a complete list of errors for any
given data operation.
Constructor Summary | |
---|---|
ValidationWarning(java.lang.String error)
Instantiates a warning with the specified error message; there is no distinction between constraint and error when instantiated this way. |
|
ValidationWarning(java.lang.String error,
java.lang.String constraint)
Instantiates a warning with the specified error for the specified constraint. |
Method Summary | |
---|---|
java.lang.String |
getConstraint()
Returns the description of the constraint. |
java.lang.String |
getError()
Returns the description of the error. |
java.lang.String |
toString()
Returns a string representation of this warning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ValidationWarning(java.lang.String error, java.lang.String constraint)
vw = new ValidationWarning("Field length exceeded.", "User name must be less than 50 characters.");
error
- The condition in violation of the object's integrity rules.constraint
- The integrity rule that has been violated.public ValidationWarning(java.lang.String error)
error
- String to displayMethod Detail |
---|
public java.lang.String getError()
public java.lang.String getConstraint()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |