Class InvalidValueException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.electronwill.nightconfig.core.conversion.InvalidValueException
- All Implemented Interfaces:
Serializable
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:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidValueException(String message) InvalidValueException(String messageFormat, Object... args) Creates a new InvalidException with a formatted message.InvalidValueException(String message, Throwable cause) -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidValueException
-
InvalidValueException
-
InvalidValueException
Creates a new InvalidException with a formatted message.- Parameters:
messageFormat- a format stringargs- the arguments- See Also:
-