Hi,
I have noticed that there is no package for console exceptions. I think it’s a good Idea to create a base standard set of these. Ex: system.console.exception.
I normally use this:
/**
* Base Exception Class for commands
*/
class CommandException extends CException {}
/**
* Exception in command's parameters
*/
class CommandParamsException extends CommandException{}
/**
* Exception when an invalid parameter is passed
*/
class InvalidCommandParamException extends CommandParamsException{}
/**
* Exception when a required parameter is missing
*/
class RequiredCommandParamException extends CommandParamsException{}