public class ErrorMessageFormatter extends Object implements IErrorMessageFormatter, IScopeProvider
ErrorMessageFormatter
wraps an error in an XML string.
<errorMessage>
<message timestamp="Mon Oct 13 12:01:57 CEST 2003"
originator="NN IOS AdapterFramework(set from 'application.name' and 'application.version')"
message="message describing the error that occurred" >
<location class="nl.nn.adapterframework.pipes.XmlSwitch" name="ServiceSwitch"/>
<details>detailed information of the error</details>
<originalMessage messageId="..." receivedTime="Mon Oct 27 12:10:18 CET 2003" >
<![CDATA[contents of message for which the error occurred]]>
</originalMessage>
</errorMessage>
Modifier and Type | Field and Description |
---|---|
protected org.apache.logging.log4j.Logger |
log |
Constructor and Description |
---|
ErrorMessageFormatter() |
Modifier and Type | Method and Description |
---|---|
Message |
format(String errorMessage,
Throwable t,
INamedObject location,
Message originalMessage,
String messageId,
long receivedTime)
Format the available parameters into a XML-message.
|
protected String |
getErrorMessage(String message,
Throwable t) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getConfigurationClassLoader
public Message format(String errorMessage, Throwable t, INamedObject location, Message originalMessage, String messageId, long receivedTime)
format
in interface IErrorMessageFormatter
Copyright © 2023 Frank!Framework. All rights reserved.