Class ParseException

    • Field Detail

      • DEFAULT_ERROR_EXIT_STATUS

        public static final int DEFAULT_ERROR_EXIT_STATUS
        See Also:
        Constant Field Values
    • Constructor Detail

      • ParseException

        public ParseException​(Field field,
                              String value,
                              String message)
        Constructs a new exception with the specified field, value, and message.
        Parameters:
        field - The field which could not be populated
        value - The value that could not be parsed
        message - The message to include in the exception
      • ParseException

        public ParseException​(String value,
                              String message)
      • ParseException

        public ParseException​(Field field,
                              String message)
      • ParseException

        public ParseException​(String message)
      • ParseException

        public ParseException​(String message,
                              Throwable cause)
      • ParseException

        public ParseException​(Throwable cause)
    • Method Detail

      • getExitStatus

        public int getExitStatus()
        Returns the exit status which should be passed back to the shell for this exception. Allowing this to be different on a field by field basis can allow shell programs to determine which fields were invalid.
        Returns:
        The exit status which should be passed back to the shell
      • getField

        public Field getField()
      • getValue

        public String getValue()