|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.acsinet_solutions.util.exception.ValidationException
public class ValidationException
A checked validation error occurred somewhere
| Constructor Summary | |
|---|---|
ValidationException(java.util.List<ValidationIssue> issues)
Public constructor |
|
ValidationException(java.lang.String key,
java.lang.Object... args)
Public constructor |
|
ValidationException(java.lang.Throwable nested)
A validation exception that wraps another exception. |
|
| Method Summary | |
|---|---|
java.util.List<ValidationIssue> |
getIssues()
Get a list of the validation issues that raised this exception |
java.util.List<java.lang.String> |
getValidationMessages(MessageFactory factory)
Get the validation messages corresponding to the input issue list. |
void |
printIssues()
Useful debug method that prints the validation issues |
| 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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ValidationException(java.lang.String key,
java.lang.Object... args)
issue - A not-null String instance that will be used as the key
for the only issue for this validation exceptionpublic ValidationException(java.util.List<ValidationIssue> issues)
issues - A not-null not-empty List of not-null ValidationIssue
instancespublic ValidationException(java.lang.Throwable nested)
| Method Detail |
|---|
public final java.util.List<ValidationIssue> getIssues()
ValidationIssueHolder
getIssues in interface ValidationIssueHolderpublic final java.util.List<java.lang.String> getValidationMessages(MessageFactory factory)
ValidationIssueHolder
getValidationMessages in interface ValidationIssueHolderpublic final void printIssues()
ValidationIssueHolder
printIssues in interface ValidationIssueHolder
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||