public class ValidationEvent extends Object implements Serializable
| Constructor and Description |
|---|
ValidationEvent()
Default constructor.
|
ValidationEvent(String desc,
String value)
Parameterized constructor.
|
ValidationEvent(String desc,
String value,
String loc)
Parameterized constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription()
Gets the description.
|
String |
getInvalidValue()
Gets the erroneous value.
|
int |
getLevel()
Gets the level.
|
String |
getLocation()
Gets the location.
|
void |
printError()
Prints the error in the console.
|
void |
printWarning()
Prints the warning in the console.
|
String |
toString()
Gets the string.
|
public ValidationEvent()
public ValidationEvent(String desc, String value)
desc - error descriptionvalue - the value that caused the errorpublic void printError()
public void printWarning()
public int getLevel()
public String getLocation()
public String getDescription()
public String getInvalidValue()
Copyright © 2015–2020. All rights reserved.