Class SoapErrorMessageFormatter
java.lang.Object
org.frankframework.errormessageformatters.ErrorMessageFormatter
org.frankframework.errormessageformatters.SoapErrorMessageFormatter
- All Implemented Interfaces:
IErrorMessageFormatter
,IScopeProvider
ErrorMessageFormatter that returns a standard SOAP fault message.
- Author:
- Peter Leeuwenburgh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionformat
(String errorMessage, Throwable t, HasName location, Message originalMessage, PipeLineSession session) Format the available parameters into an XML or JSON message.void
setMessageFormat
(DocumentFormat messageFormat) Format the error message as XML or as JSON.Methods inherited from class org.frankframework.errormessageformatters.ErrorMessageFormatter
getErrorMessage
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.frankframework.core.IScopeProvider
getConfigurationClassLoader
-
Constructor Details
-
SoapErrorMessageFormatter
public SoapErrorMessageFormatter()
-
-
Method Details
-
format
@Nonnull public Message format(@Nullable String errorMessage, @Nullable Throwable t, @Nullable HasName location, @Nullable Message originalMessage, @Nonnull PipeLineSession session) Description copied from class:ErrorMessageFormatter
Format the available parameters into an XML or JSON message.
Override this method in subclasses to obtain the required behaviour.- Specified by:
format
in interfaceIErrorMessageFormatter
- Overrides:
format
in classErrorMessageFormatter
-
setMessageFormat
Description copied from class:ErrorMessageFormatter
Format the error message as XML or as JSON. ff.default XML- Overrides:
setMessageFormat
in classErrorMessageFormatter
-