public final class ConfigValidationErrors extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConfigValidationErrors.Status
Error status of the configuration status.
|
Modifier and Type | Field and Description |
---|---|
private StringBuilder |
errors |
private String |
errorString |
private static String |
NEWLINE |
private int |
numErrors |
private boolean |
valid |
Constructor and Description |
---|
ConfigValidationErrors()
Constructs a new exception with null as its detail message.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(ConfigValidationErrors.Status status,
String error)
Add an error to the list of validation errors.
|
void |
addError(String error)
Add an error to the list of validation errors.
|
String |
getValidationErrors()
Get the validation errors.
|
private StringBuilder errors
private boolean valid
private int numErrors
private String errorString
private static final String NEWLINE
public ConfigValidationErrors()
public void addError(String error)
error
- the error to be added to the list of errors.public void addError(ConfigValidationErrors.Status status, String error)
status
- the error status of this validation error.error
- the error to be added to the list of errors.public String getValidationErrors()
Copyright © 2015 University of Glasgow. All rights reserved.