Package com.helger.as2lib.exception
Class AS2Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.helger.as2lib.exception.AS2Exception
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
AS2CertificateExistsException
,AS2CertificateNotFoundException
,AS2ComponentDuplicateException
,AS2ComponentNotFoundException
,AS2DispositionException
,AS2ForcedStopException
,AS2HttpResponseException
,AS2InvalidMessageException
,AS2InvalidParameterException
,AS2KeyNotFoundException
,AS2NetException
,AS2NoModuleException
,AS2PartnershipNotFoundException
,AS2ProcessorException
,AS2UnsupportedException
,WrappedAS2Exception
Base class for all AS2 related exceptions used in this project.
- Author:
- Philip Helger
- See Also:
-
Constructor Summary
ConstructorDescriptionAS2Exception
(String sMsg) AS2Exception
(String sMsg, Throwable aCause) AS2Exception
(Throwable aCause) -
Method Summary
Modifier and TypeMethodDescriptionfinal IMessage
protected final void
static final void
log
(Class<?> aExceptionClass, boolean bTerminated, String sLogMessage, File aSrcFile, IMessage aSrcMsg, Throwable aCause) final AS2Exception
setSourceMsg
(IMessage aSrcMsg) final AS2Exception
Log the exception but don't throw it.final void
final void
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
AS2Exception
-
AS2Exception
-
AS2Exception
-
-
Method Details
-
getSourceMsg
-
setSourceMsg
-
log
-
log
- Parameters:
bTerminated
-true
if the exception was terminatedaSrcFile
- Source file. May benull
.aSrcMsg
- Source message. May benull
.
-
terminate
Log the exception but don't throw it.- Returns:
- this for chaining
-
terminate
-
terminate
-