Class ExceptionAsString
java.lang.Object
com.adaptris.core.services.exception.ExceptionAsString
- All Implemented Interfaces:
ExceptionSerializer
Serializes the exception as a String.
Note that this uses
org.apache.commons.lang3.exception.ExceptionUtils#getFullStackTrace(Throwable)
which
means that the root cause is first
- Since:
- 3.7.3
In the adapter configuration file this class is aliased as exception-as-string which is the preferred alternative to the fully qualified classname when building your configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
serialize
(Exception exc, AdaptrisMessage msg) Serialize the exception into the adaptris message.void
setIncludeStackTrace
(Boolean includeStackTrace) void
setTarget
(DataOutputParameter<String> target) withTarget
(DataOutputParameter<String> target)
-
Constructor Details
-
ExceptionAsString
public ExceptionAsString()
-
-
Method Details
-
serialize
Description copied from interface:ExceptionSerializer
Serialize the exception into the adaptris message.- Specified by:
serialize
in interfaceExceptionSerializer
- Parameters:
exc
- the exceptionmsg
- the message- Throws:
CoreException
- wrapping other exceptions.
-
getTarget
-
setTarget
-
withTarget
-
getIncludeStackTrace
-
setIncludeStackTrace
-
withIncludeStackTrace
-