Class ValidationException

    • Method Summary

      Modifier and Type Method Description
      void addValidationError​(java.lang.String error)
      Add a new validation error to the accumulating validation errors
      void addValidationErrors​(java.lang.Iterable<java.lang.String> errors)
      Add a sequence of validation errors to the accumulating validation errors
      java.lang.String getMessage()  
      java.util.List<java.lang.String> validationErrors()
      Returns the validation errors accumulated
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ValidationException

        public ValidationException()
    • Method Detail

      • addValidationError

        public final void addValidationError​(java.lang.String error)
        Add a new validation error to the accumulating validation errors
        Parameters:
        error - the error to add
      • addValidationErrors

        public final void addValidationErrors​(java.lang.Iterable<java.lang.String> errors)
        Add a sequence of validation errors to the accumulating validation errors
        Parameters:
        errors - the errors to add
      • validationErrors

        public final java.util.List<java.lang.String> validationErrors()
        Returns the validation errors accumulated
      • getMessage

        public final java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable