use of net.robinfriedli.aiode.exceptions.UnexpectedCommandSetupException in project aiode by robinfriedli.
the class CommandParserInterceptor method performChained.
@Override
public void performChained(Command command) {
if (command instanceof AbstractCommand) {
AbstractCommand textBasedCommand = (AbstractCommand) command;
CommandParser commandParser = new CommandParser(textBasedCommand, ArgumentPrefixProperty.getForCurrentContext());
try {
commandParser.parse();
} catch (CommandParseException e) {
throw e;
} catch (Exception e) {
throw new UnexpectedCommandSetupException(e);
}
}
}
Aggregations