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.
        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
        Value that failed to parse
      • getFlag

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

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