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
public final class WrappedAS2Exception extends AS2Exception
AnAS2Exceptionthat wraps an existing exception easily.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AS2Exceptionwrap(Throwable t)Ensure the passedThrowableis 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 Detail
-
wrap
@Nonnull public static AS2Exception wrap(@Nonnull Throwable t)
Ensure the passedThrowableis anAS2Exception.- Parameters:
t- The Throwable to use.- Returns:
- Either t or a
WrappedAS2Exceptioncontaining t.
-
-