Package com.helger.as2lib.exception
Class WrappedAS2Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.helger.as2lib.exception.AS2Exception
com.helger.as2lib.exception.WrappedAS2Exception
- All Implemented Interfaces:
Serializable
An
AS2Exception
that wraps an existing exception easily.- Author:
- Philip Helger
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic AS2Exception
Ensure the passedThrowable
is anAS2Exception
.Methods inherited from class com.helger.as2lib.exception.AS2Exception
getSourceMsg, log, log, setSourceMsg, terminate, terminate, terminate
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Method Details
-
wrap
Ensure the passedThrowable
is anAS2Exception
.- Parameters:
t
- The Throwable to use.- Returns:
- Either t or a
WrappedAS2Exception
containing t.
-