Package jetbrains.buildServer.util.retry
Class RecoverableException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- jetbrains.buildServer.util.retry.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 ofRetrierEventListener
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RecoverableException(String message)
RecoverableException(String message, Throwable cause)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isRecoverable()
protected static boolean
isRecoverable(Throwable cause)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
isRecoverable
protected static boolean isRecoverable(@NotNull Throwable cause)
-
isRecoverable
public abstract boolean isRecoverable()
-
-