Package ddf.catalog.validation.impl
Class ValidationExceptionImpl
java.lang.Object
java.lang.Throwable
java.lang.Exception
ddf.catalog.validation.ValidationException
ddf.catalog.validation.impl.ValidationExceptionImpl
- All Implemented Interfaces:
Serializable
public class ValidationExceptionImpl
extends ddf.catalog.validation.ValidationException
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionValidationExceptionImpl(String summaryMessage) ValidationExceptionImpl(String summaryMessage, Throwable cause) ValidationExceptionImpl(String summaryMessage, Throwable cause, List<String> errors, List<String> warnings) Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings.Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings.ValidationExceptionImpl(Throwable cause) Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings. -
Method Summary
Methods inherited from class ddf.catalog.validation.ValidationException
toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ValidationExceptionImpl
public ValidationExceptionImpl() -
ValidationExceptionImpl
-
ValidationExceptionImpl
Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings.- Parameters:
summaryMessage- summarizes why the validation operation failederrors- list of human readable error messageswarnings- list of human readable warning messages
-
ValidationExceptionImpl
-
ValidationExceptionImpl
Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings.- Parameters:
cause- the cause of why the validation operation failederrors- list of human readable error messageswarnings- list of human readable warning messages
-
ValidationExceptionImpl
-
ValidationExceptionImpl
public ValidationExceptionImpl(String summaryMessage, Throwable cause, List<String> errors, List<String> warnings) Constructs aValidationExceptionwith a specified summary message of the failure and associated errors and warnings.- Parameters:
summaryMessage- summarizes why the validation operation failedcause- the cause of why the validation operation failederrors- list of human readable error messageswarnings- list of human readable warning messages
-
-
Method Details
-
getErrors
- Specified by:
getErrorsin classddf.catalog.validation.ValidationException
-
setErrors
- Parameters:
errors- Applies a list of all the error messages that have caused validation to fail. The error messages should be human-readable plain text.
-
getWarnings
- Specified by:
getWarningsin classddf.catalog.validation.ValidationException
-
setWarnings
- Parameters:
warnings- Applies a list of warnings messages to this exception. Warning messages are issues that arose during validation but did not cause validation to fail. A warning message should be human-readable plain text.
-