Class InvalidArgumentException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.sympho.modular_commands.api.exception.CommandException
dev.sympho.modular_commands.api.command.parameter.parse.InvalidArgumentException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
InvalidListException
Exception thrown when an argument cannot be parsed due to being invalid.
- Since:
- 1.0
- Version:
- 1.0
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionInvalidArgumentException
(String message) Constructs a new exception.InvalidArgumentException
(String message, Throwable cause) Constructs a new exception. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
InvalidArgumentException
Constructs a new exception.- Parameters:
message
- A message detailing why the argument is invalid.
-
InvalidArgumentException
Constructs a new exception.- Parameters:
message
- A message detailing why the argument is invalid.cause
- The exception that caused the value to be invalid.
-
-
Method Details
-
getMessage
- Overrides:
getMessage
in classThrowable
-