Class InvalidParameterFormatException
- 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.InvalidParameterFormatException
-
- All Implemented Interfaces:
Serializable
public class InvalidParameterFormatException extends ParameterParseException
An invalid parameter format exception that is thrown byParameterConverter
s if the format of the parameter is invalid, for example some text for a number-parsing converter. 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 InvalidParameterFormatException(String message)
Constructs a new invalid parameter format exception with the given message.InvalidParameterFormatException(String message, Throwable cause)
Constructs a new invalid parameter format 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
-
InvalidParameterFormatException
public InvalidParameterFormatException(String message)
Constructs a new invalid parameter format 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
-
InvalidParameterFormatException
public InvalidParameterFormatException(String message, Throwable cause)
Constructs a new invalid parameter format 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
-
-