public class XslErrorMessageFormatter extends ErrorMessageFormatter
ErrorMessageFormatter
.
If the transformation does not succeed, this 'standard' error message is returned and an exception is logged.
Hint: use xpathExression="/errorMessage/@message"
for a single compact string as errormessage.Modifier and Type | Field and Description |
---|---|
protected ParameterList |
paramList |
log
Constructor and Description |
---|
XslErrorMessageFormatter() |
Modifier and Type | Method and Description |
---|---|
void |
addParameter(Parameter p) |
Message |
format(String errorMessage,
Throwable t,
INamedObject location,
Message originalMessage,
String messageId,
long receivedTime)
Format the available parameters into a XML-message.
|
ParameterList |
getParameterList() |
void |
setStyleSheet(String newStyleSheet)
URL to the stylesheet used to transform the output of the standard
ErrorMessageFormatter |
void |
setXpathExpression(String string)
xPathExpression to use for transformation
|
getErrorMessage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationClassLoader
protected ParameterList paramList
public Message format(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime)
ErrorMessageFormatter
format
in interface IErrorMessageFormatter
format
in class ErrorMessageFormatter
public void addParameter(Parameter p)
public ParameterList getParameterList()
public void setStyleSheet(String newStyleSheet)
ErrorMessageFormatter
public void setXpathExpression(String string)
Copyright © 2023 Frank!Framework. All rights reserved.