Class InvalidValueException

  • All Implemented Interfaces:
    java.io.Serializable

    public final class InvalidValueException
    extends java.lang.RuntimeException
    Thrown when a value that is associated to a field, or that should become associated to a field, doesn't conform to the @Spec(something) annotation of that field.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidValueException​(java.lang.String message)  
      InvalidValueException​(java.lang.String messageFormat, java.lang.Object... args)
      Creates a new InvalidException with a formatted message.
      InvalidValueException​(java.lang.String message, java.lang.Throwable cause)  
    • Method Summary

      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • InvalidValueException

        public InvalidValueException​(java.lang.String message)
      • InvalidValueException

        public InvalidValueException​(java.lang.String message,
                                     java.lang.Throwable cause)
      • InvalidValueException

        public InvalidValueException​(java.lang.String messageFormat,
                                     java.lang.Object... args)
        Creates a new InvalidException with a formatted message.
        Parameters:
        messageFormat - a format string
        args - the arguments
        See Also:
        String.format(String, Object...)