public class ExceptionWrapperResultTranslator extends Object implements ResultTranslator
Constructor and Description |
---|
ExceptionWrapperResultTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
translate(CommandContext context,
Object cmdKey,
Object invoker,
Object args,
Exception exception)
Rethrows all exceptions.
|
public void translate(CommandContext context, Object cmdKey, Object invoker, Object args, Exception exception) throws IfsException
translate
in interface ResultTranslator
context
- the command's context.cmdKey
- the command's key within the invocation environment.invoker
- the command's invoker.args
- additional args to be interpreted.exception
- any exception that occured during Command.run.IfsException
CommandContext
,
CommandInvoker
Copyright © 2023. All rights reserved.