Class InvalidParameterValueException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalArgumentException
-
- net.kautler.command.api.parameter.ParameterParseException
-
- net.kautler.command.api.parameter.InvalidParameterValueException
-
- All Implemented Interfaces:
Serializable
public class InvalidParameterValueException extends ParameterParseException
An invalid parameter value exception that is thrown byParameterConverters if the value of the parameter is invalid though the format was correct, for example the id of an unknown user. The message should be written in a way so that it can be directly presented to the end user.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InvalidParameterValueException(String message)Constructs a new invalid parameter value exception with the given message.InvalidParameterValueException(String message, Throwable cause)Constructs a new invalid parameter value exception with the given message and cause.
-
Method Summary
-
Methods inherited from class net.kautler.command.api.parameter.ParameterParseException
equals, getParameterName, getParameterValue, hashCode, setParameterName, setParameterValue, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
InvalidParameterValueException
public InvalidParameterValueException(String message)
Constructs a new invalid parameter value exception with the given message. The message should be written in a way so that it can be directly presented to the end user.- Parameters:
message- the detail message
-
InvalidParameterValueException
public InvalidParameterValueException(String message, Throwable cause)
Constructs a new invalid parameter value exception with the given message and cause. The message should be written in a way so that it can be directly presented to the end user.- Parameters:
message- the detail messagecause- the cause
-
-