Package com.helger.as2lib.disposition
Class AS2DispositionException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.helger.as2lib.exception.AS2Exception
com.helger.as2lib.disposition.AS2DispositionException
- All Implemented Interfaces:
Serializable
Exception thrown in case a message disposition contains an error or a
warning. The content of
getText()
is send back as the MDN in case of
a receiving error.- Author:
- Philip Helger
- See Also:
-
Constructor Summary
ConstructorDescriptionAS2DispositionException
(DispositionType aDisposition, String sText, Throwable aCause) -
Method Summary
Modifier and TypeMethodDescriptionfinal DispositionType
final String
getText()
static AS2DispositionException
wrap
(Exception ex, Supplier<DispositionType> aDispositionTypeSupplier, Supplier<String> aTextSupplier) 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
-
Constructor Details
-
AS2DispositionException
-
-
Method Details
-
getDisposition
- Returns:
- The disposition as provided in the constructor. Never
null
.
-
getText
-
wrap
@Nonnull public static AS2DispositionException wrap(@Nonnull Exception ex, @Nonnull Supplier<DispositionType> aDispositionTypeSupplier, @Nonnull Supplier<String> aTextSupplier)
-