Class InvalidValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.electronwill.nightconfig.core.conversion.InvalidValueException
-
- All Implemented Interfaces:
java.io.Serializable
public final class InvalidValueException extends java.lang.RuntimeExceptionThrown 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)
-
-
-
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 stringargs- the arguments- See Also:
String.format(String, Object...)
-
-