Class ExceptionWrapper
- java.lang.Object
-
- de.gebit.integrity.runner.wrapper.ExceptionWrapper
-
public class ExceptionWrapper extends java.lang.Object
This wrapper is used to store the information from an exception likeAbortExecutionException
. The exception cannot be transmitted over the remoting, since it cannot be guaranteed to match between versions for serialization purposes. Instead, the important information is extracted out of it and wrapped inside this object.- Author:
- Rene Schneider - initial API and implementation
-
-
Constructor Summary
Constructors Constructor Description ExceptionWrapper(java.lang.String aMessage, java.lang.String aStackTrace)
Creates an instance from the raw data.ExceptionWrapper(java.lang.Throwable anException)
Creates an instance from the exception itself.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getMessage()
java.lang.String
getStackTrace()
-
-
-
Constructor Detail
-
ExceptionWrapper
public ExceptionWrapper(java.lang.String aMessage, java.lang.String aStackTrace)
Creates an instance from the raw data.- Parameters:
aMessage
- the messageaStackTrace
- the stack trace string
-
ExceptionWrapper
public ExceptionWrapper(java.lang.Throwable anException)
Creates an instance from the exception itself.- Parameters:
anException
- the exception to use as a base
-
-