Package de.aristaflow.ilm.util
Class WrappingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- de.aristaflow.ilm.util.IlmException
-
- de.aristaflow.ilm.util.WrappingException
-
- All Implemented Interfaces:
de.aristaflow.adept2.model.communication.webservice.ReplacingException
,de.aristaflow.adept2.model.communication.webservice.StackSuppressingException
,Serializable
public class WrappingException extends IlmException implements de.aristaflow.adept2.model.communication.webservice.ReplacingException
This class is a generic exception that wraps arbitrary exceptions which are not represented as subclasses ofIlmException
. It stores the class name of the wrapped exception so that the type information will be kept.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description @NotEmpty String
replacedExceptionClassName
The class name of the wrapped exception.-
Fields inherited from class de.aristaflow.ilm.util.IlmException
causeClass, message, serverLogId, subClass, suppressStack
-
-
Constructor Summary
Constructors Constructor Description WrappingException()
The constructor required for bean deserialisation.WrappingException(Throwable wrapped)
Creates a new exception wrapping the designated throwable and its cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getReplacedExceptionClassName()
-
Methods inherited from class de.aristaflow.ilm.util.IlmException
getCause, getIlmStackTrace, getLocalizedMessage, getLogId, getMessage, getStackTrace, setLogId, setStackTrace, setSuppressStack
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, toString
-
-
-
-
Field Detail
-
replacedExceptionClassName
@NotEmpty public @NotEmpty String replacedExceptionClassName
The class name of the wrapped exception.
-
-
Constructor Detail
-
WrappingException
public WrappingException()
The constructor required for bean deserialisation.
-
WrappingException
public WrappingException(Throwable wrapped)
Creates a new exception wrapping the designated throwable and its cause. Additionally, the class name of the class of the designated wrapped exception will be stored.- Parameters:
wrapped
- The throwable which to wrap by the created exception.
-
-
Method Detail
-
getReplacedExceptionClassName
public String getReplacedExceptionClassName()
- Specified by:
getReplacedExceptionClassName
in interfacede.aristaflow.adept2.model.communication.webservice.ReplacingException
-
-