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

public class Phase4Exception extends Exception
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 Details

    • DEFAULT_RETRY_FEASIBLE

      public static final boolean DEFAULT_RETRY_FEASIBLE
      See Also:
  • Constructor Details

    • Phase4Exception

      public Phase4Exception(@NonNull String sMessage)
      Parameters:
      sMessage - Error message
    • Phase4Exception

      public Phase4Exception(@NonNull String sMessage, @Nullable Throwable aCause)
      Parameters:
      sMessage - Error message
      aCause - Optional causing exception
  • Method Details

    • isRetryFeasible

      public final boolean isRetryFeasible()
      Returns:
      true if a retry is feasible, false if not.
      Since:
      3.2.0
    • setRetryFeasible

      public final @NonNull Phase4Exception setRetryFeasible(boolean b)
      Set whether a retry might be feasible or not.
      Parameters:
      b - true if a retry is feasible, false if not
      Returns:
      this for chaining
      Since:
      3.2.0