public class CupHelpResultTranslator extends CupResultTranslator
Constructor and Description |
---|
CupHelpResultTranslator() |
Modifier and Type | Method and Description |
---|---|
protected String |
getResourceString(IfsProtocolServer server,
LibrarySession session,
String key) |
protected String |
getResourceString(IfsProtocolServer server,
LibrarySession session,
String key,
Object[] inserts) |
void |
translate(CommandContext state,
Object cmdKey,
Object invoker,
Object args,
Exception exception)
Translates from the
CommandContext into
the invocation environment. |
sendGenericError
public void translate(CommandContext state, Object cmdKey, Object invoker, Object args, Exception exception) throws IfsException
ResultTranslator
CommandContext
into
the invocation environment.state
- 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
protected String getResourceString(IfsProtocolServer server, LibrarySession session, String key, Object[] inserts) throws IfsException
IfsException
protected String getResourceString(IfsProtocolServer server, LibrarySession session, String key) throws IfsException
IfsException
Copyright © 2023. All rights reserved.