Package tools.exceptions
Class MismatchedCommandArgumentsException
Object
Throwable
Exception
RuntimeException
IllegalArgumentException
MismatchedCommandArgumentsException
- All Implemented Interfaces:
Serializable
public class MismatchedCommandArgumentsException
extends IllegalArgumentException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MismatchedCommandArgumentsException(String message)
To be thrown when an input is not the required length in KeywordInterfaceMismatchedCommandArgumentsException(String expectedLength, int actualLength)
To be thrown when an input is not the required length in KeywordInterface -
Method Summary
-
Constructor Details
-
MismatchedCommandArgumentsException
public MismatchedCommandArgumentsException(String expectedLength, int actualLength)To be thrown when an input is not the required length in KeywordInterface- Parameters:
expectedLength
- the expected length of the inputactualLength
- the actual length of the input
-
MismatchedCommandArgumentsException
public MismatchedCommandArgumentsException(String message)To be thrown when an input is not the required length in KeywordInterface- Parameters:
message
- the exception message
-