Class BadFieldType

java.lang.Object
java.lang.Throwable
java.lang.Exception
com.github.sttk.cliargs.exceptions.BadFieldType
All Implemented Interfaces:
Serializable

public class BadFieldType extends Exception
Is the exception which indicates that a type of a field of an option store is neither a boolean, a number, a string, nor an array of numbers or strings.
See Also:
  • Field Details

    • field

      public final String field
      The field name in the option store.
    • type

      public final Class<?> type
      The type of the field in the option store.
  • Constructor Details

    • BadFieldType

      public BadFieldType(String field, Class<?> type)
      Constructs an instance of this class.
      Parameters:
      field - The field name in the option store.
      type - The class of the field in the option store.
  • Method Details

    • getMessage

      public String getMessage()
      Returns a string which represents the content of this exception.
      Overrides:
      getMessage in class Throwable
      Returns:
      The exception message.