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.voidsetMessageFormat(DocumentFormat messageFormat) Format the error message as XML or as JSON.Methods inherited from class org.frankframework.errormessageformatters.ErrorMessageFormatter
getErrorMessage, getMessageAsStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ErrorMessageFormatterFormat the available parameters into an XML or JSON message.
Override this method in subclasses to obtain the required behaviour.- Specified by:
formatin interfaceIErrorMessageFormatter- Overrides:
formatin classErrorMessageFormatter
-
setMessageFormat
Description copied from class:ErrorMessageFormatterFormat the error message as XML or as JSON.- Overrides:
setMessageFormatin classErrorMessageFormatter
-