Package com.helger.phase4.util
Class Phase4Exception
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.helger.phase4.util.Phase4Exception
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Phase4IncomingException,PModeValidationException
phase4 base exception. It is just a in-between exception for easy catching of all phase4 related
exception.
- Since:
- 0.9.7
- Author:
- Philip Helger
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionPhase4Exception(@NonNull String sMessage) Phase4Exception(@NonNull String sMessage, @Nullable Throwable aCause) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanfinal @NonNull Phase4ExceptionsetRetryFeasible(boolean b) Set whether a retry might be feasible or not.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
DEFAULT_RETRY_FEASIBLE
public static final boolean DEFAULT_RETRY_FEASIBLE- See Also:
-
-
Constructor Details
-
Phase4Exception
- Parameters:
sMessage- Error message
-
Phase4Exception
- Parameters:
sMessage- Error messageaCause- Optional causing exception
-
-
Method Details
-
isRetryFeasible
public final boolean isRetryFeasible()- Returns:
trueif a retry is feasible,falseif not.- Since:
- 3.2.0
-
setRetryFeasible
Set whether a retry might be feasible or not.- Parameters:
b-trueif a retry is feasible,falseif not- Returns:
- this for chaining
- Since:
- 3.2.0
-