Class RecoverableException

  • All Implemented Interfaces:
    Serializable

    public abstract class RecoverableException
    extends RuntimeException
    The RecoverableException class represents an exception that is recoverable, meaning that it can be handled and the program can continue execution.

    This class provides constructors to create a RecoverableException with a message and an optional cause. It also provides a static method to check if a given Throwable is a RecoverableException.

    Any class that extends RecoverableException must implement the isRecoverable() method, which returns a boolean indicating whether the exception is recoverable or not.

    These exceptions can be thrown during the events of RetrierEventListener

    See Also:
    Serialized Form
    • Constructor Detail

      • RecoverableException

        public RecoverableException​(@NotNull
                                    String message)
      • RecoverableException

        public RecoverableException​(@NotNull
                                    String message,
                                    @NotNull
                                    Throwable cause)
    • Method Detail

      • isRecoverable

        protected static boolean isRecoverable​(@NotNull
                                               Throwable cause)
      • isRecoverable

        public abstract boolean isRecoverable()