Package com.plotsquared.core.plot.flag
Class FlagParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.plotsquared.core.plot.flag.FlagParseException
- All Implemented Interfaces:
Serializable
- See Also:
- Serialized Form
-
Constructor Summary
ConstructorDescriptionFlagParseException(PlotFlag<?,?> flag, String value, Caption errorMessage, net.kyori.adventure.text.minimessage.Template... args)
Construct a new flag parse exception to indicate that an attempt to parse a plot flag was unsuccessful. -
Method Summary
Modifier and TypeMethodDescriptionGet the error message that was supplied by the flag instance.PlotFlag<?,?>
getFlag()
Returns the class that threw the exceptionnet.kyori.adventure.text.minimessage.Template[]
Get the templates that were supplied by the flag instance.getValue()
Returns the value that caused the parse exceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
Method Details
-
getValue
Returns the value that caused the parse exception- Returns:
- Value that failed to parse
-
getFlag
Returns the class that threw the exception- Returns:
- Flag that threw the exception
-
getErrorMessage
Get the error message that was supplied by the flag instance.- Returns:
- Error message.
-
getTemplates
public net.kyori.adventure.text.minimessage.Template[] getTemplates()Get the templates that were supplied by the flag instance.- Returns:
- Message templates.
-