Class ValidationFailedException

    • Method Summary

      • Methods inherited from class java.lang.Throwable

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

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

      • ValidationFailedException

        public ValidationFailedException()

        A default constructor.

      • ValidationFailedException

        public ValidationFailedException​(java.lang.String str)

        A constructor that accepts an error message. The error message can be retrieved using the getMessage() API.

        Parameters:
        str - An error message.
      • ValidationFailedException

        public ValidationFailedException​(java.lang.Throwable t)

        A constructor that accepts a Throwable. The Throwable can be retrieved using the getExceptions() or getCause() API.

        Parameters:
        t - Any exception type that extends Throwable.
      • ValidationFailedException

        public ValidationFailedException​(java.lang.String str,
                                         java.lang.Throwable t)

        A constructor accepts an error message and original exception. The exception will be added to an ArrayList and other exceptions may be added along the way. The error message can be retrieved using the getMessage() API.

        Parameters:
        str - An error message.
        t - Any exception type that extends Throwable.