public class CupMvResultTranslator extends CupResultTranslator
Constructor and Description |
---|
CupMvResultTranslator() |
Modifier and Type | Method and Description |
---|---|
void |
translate(CommandContext state,
Object cmdKey,
Object invoker,
Object args,
Exception exception)
Translates the output and sends out answer to the cup client.
|
sendGenericError
public void translate(CommandContext state, Object cmdKey, Object invoker, Object args, Exception exception) throws IfsException
state
- instance of CommandContextcmdKey
- command key for the commandinvoker
- invoker of the commandargs
- this encapsulates the argumentsexception
- this holds any exceptions that were raised in the command executionIfsException
- if the operation failsCommandContext
,
CommandInvoker
Copyright © 2023. All rights reserved.