public class ValidationException
extends java.lang.Exception
| Constructor and Description |
|---|
ValidationException()
Create a validation exception with a null label and reason
|
ValidationException(java.lang.String label,
java.lang.String reason)
Create a validation exception with the given
label and reason
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLabel()
User's description of the test/assertion
|
java.lang.String |
getMessage()
the message of the exception
|
java.lang.String |
getReason()
Why the test/assertion failed
|
public ValidationException()
public ValidationException(java.lang.String label,
java.lang.String reason)
label - the user's description of the assertion/testreason - the reason it failedpublic java.lang.String getMessage()
getMessage in class java.lang.Throwablepublic java.lang.String getLabel()
public java.lang.String getReason()
Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.