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 TypeMethodDescription@NonNull Messageformat(@Nullable String errorMessage, @Nullable Throwable t, @Nullable HasName location, @Nullable Message originalMessage, @NonNull PipeLineSession session) Format the available parameters into an XML or JSON message.voidsetMessageFormat(@NonNull DocumentFormat messageFormat) Format the error message as XML or as JSON.Methods inherited from class ErrorMessageFormatter
getErrorMessage, getMessageAsStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IScopeProvider
getConfigurationClassLoader
-
Constructor Details
-
SoapErrorMessageFormatter
public SoapErrorMessageFormatter()
-
-
Method Details
-
format
public @NonNull 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
-