Class ValidationException

  • All Implemented Interfaces:
    java.io.Serializable

    public class ValidationException
    extends java.lang.RuntimeException
    Turns a set of Validated.Invalid into a throwable exception, which is used to throw an unchecked exception at runtime when one or more properties are invalid.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      java.net.URI getSource()  
      void setSource​(java.net.URI source)  
      • 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​(Validated validation)
    • Method Detail

      • getSource

        public java.net.URI getSource()
      • setSource

        public void setSource​(java.net.URI source)
      • getMessage

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