Class InvalidValueException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.electronwill.nightconfig.core.conversion.InvalidValueException
All Implemented Interfaces:
Serializable

public final class InvalidValueException extends 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:
  • Constructor Details

    • InvalidValueException

      public InvalidValueException(String message)
    • InvalidValueException

      public InvalidValueException(String message, Throwable cause)
    • InvalidValueException

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