public final class ServiceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
setError(EngineData output,
java.lang.String msg)
Sets the given engine data with an error status.
|
static void |
setError(EngineData output,
java.lang.String msg,
int severity)
Sets the given engine data with an error status.
|
static void |
setError(EngineData output,
java.lang.String format,
java.lang.Object... args)
Sets the given engine data with an error status.
|
public static void setError(EngineData output, java.lang.String msg)
output
- the engine data that will be returned by the servicemsg
- a description for the errorpublic static void setError(EngineData output, java.lang.String msg, int severity)
output
- the engine data that will be returned by the servicemsg
- a description for the errorseverity
- the severity of the error, as a positive integerpublic static void setError(EngineData output, java.lang.String format, java.lang.Object... args)
output
- the engine data that will be returned by the serviceformat
- a format string with a description for the errorargs
- arguments referenced by the format specifiers in the format string