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 Details

    • ValidationExceptionImpl

      public ValidationExceptionImpl()
    • ValidationExceptionImpl

      public ValidationExceptionImpl(String summaryMessage)
    • ValidationExceptionImpl

      public ValidationExceptionImpl(String summaryMessage, List<String> errors, List<String> warnings)
      Constructs a ValidationException with a specified summary message of the failure and associated errors and warnings.
      Parameters:
      summaryMessage - summarizes why the validation operation failed
      errors - list of human readable error messages
      warnings - list of human readable warning messages
    • ValidationExceptionImpl

      public ValidationExceptionImpl(Throwable cause)
    • ValidationExceptionImpl

      public ValidationExceptionImpl(Throwable cause, List<String> errors, List<String> warnings)
      Constructs a ValidationException with a specified summary message of the failure and associated errors and warnings.
      Parameters:
      cause - the cause of why the validation operation failed
      errors - list of human readable error messages
      warnings - list of human readable warning messages
    • ValidationExceptionImpl

      public ValidationExceptionImpl(String summaryMessage, Throwable cause)
    • ValidationExceptionImpl

      public ValidationExceptionImpl(String summaryMessage, Throwable cause, List<String> errors, List<String> warnings)
      Constructs a ValidationException with a specified summary message of the failure and associated errors and warnings.
      Parameters:
      summaryMessage - summarizes why the validation operation failed
      cause - the cause of why the validation operation failed
      errors - list of human readable error messages
      warnings - list of human readable warning messages
  • Method Details

    • getErrors

      public List<String> getErrors()
      Specified by:
      getErrors in class ddf.catalog.validation.ValidationException
    • setErrors

      public void setErrors(List<String> errors)
      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

      public List<String> getWarnings()
      Specified by:
      getWarnings in class ddf.catalog.validation.ValidationException
    • setWarnings

      public void setWarnings(List<String> warnings)
      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.