Class FlagParseException

    • Constructor Detail

      • FlagParseException

        public FlagParseException​(WorldFlag<?,​?> flag,
                                  String value,
                                  String errorMessage,
                                  String... args)
        Construct a new flag parse exception to indicate that an attempt to parse a world flag was unsuccessful.
        Parameters:
        flag - Flag instance
        value - Value that failed ot parse
        errorMessage - An error message explaining the failure
        args - Arguments used to format the error message
    • Method Detail

      • getValue

        public String getValue()
        Returns the value that caused the parse exception
        Returns:
        Value that failed to parse
      • getFlag

        public WorldFlag<?,​?> getFlag()
        Returns the class that threw the exception
        Returns:
        Flag that threw the exception
      • getErrorMessage

        public String getErrorMessage()
        Get the error message that was supplied by the flag instance.
        Returns:
        Error message.