Class ArgumentParseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
java.lang.IllegalArgumentException
net.pl3x.map.core.command.exception.ArgumentParseException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
PlayerParseException
,PointParseException
,RendererParseException
,WorldParseException
,ZoomParseException
Thrown to indicate that a method has been passed an illegal or inappropriate command argument.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Failure reason for throwing the exception. -
Constructor Summary
ConstructorDescriptionArgumentParseException
(@Nullable String input, @NotNull String variable, @NotNull ArgumentParseException.Reason reason) Construct a new ArgumentParseException. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ArgumentParseException
public ArgumentParseException(@Nullable @Nullable String input, @NotNull @NotNull String variable, @NotNull @NotNull ArgumentParseException.Reason reason) Construct a new ArgumentParseException.- Parameters:
input
- Inputreason
- Failure reason
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-