Class RequestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.opendaylight.controller.cluster.access.concepts.RequestException
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClosedTransactionException
,DeadHistoryException
,DeadTransactionException
,NotLeaderException
,OutOfOrderRequestException
,OutOfSequenceEnvelopeException
,RequestTimeoutException
,RetiredGenerationException
,RuntimeRequestException
,UnknownHistoryException
,UnsupportedRequestException
@Beta public abstract class RequestException extends Exception
A failure cause behind aRequestFailure
to process aRequest
.- Author:
- Robert Varga
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
RequestException(@NonNull String message)
protected
RequestException(@NonNull String message, @NonNull Throwable cause)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract boolean
isRetriable()
Throwable
unwrap()
Unwraps the underlying failure.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Method Detail
-
isRetriable
public abstract boolean isRetriable()
-
unwrap
public Throwable unwrap()
Unwraps the underlying failure. This method is overridden only inRuntimeRequestException
.- Returns:
- Underlying cause of the failure if exception is a
RuntimeRequestException
, or the exception itself.
-
-