Package tools.exceptions
Class CommandNotFoundException
Object
Throwable
Exception
RuntimeException
IllegalArgumentException
CommandNotFoundException
- All Implemented Interfaces:
Serializable
public class CommandNotFoundException
extends IllegalArgumentException
- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description CommandNotFoundException(String message)To be thrown when an invalid command is passed to KeywordInterfaceCommandNotFoundException(String message, Throwable cause)To be thrown when an invalid command is passed to KeywordInterface -
Method Summary
-
Constructor Details
-
CommandNotFoundException
public CommandNotFoundException(String message)To be thrown when an invalid command is passed to KeywordInterface- Parameters:
message- the message describing the problem
-
CommandNotFoundException
public CommandNotFoundException(String message, Throwable cause)To be thrown when an invalid command is passed to KeywordInterface- Parameters:
message- the message describing the problemcause- the cause of the error
-