java.lang.Object
io.lettuce.core.internal.Exceptions
public class Exceptions extends Object
Exception handling and utils to operate on.
- Since:
- 6.0
- Author:
- Mark Paluch
-
Constructor Summary
Constructors Constructor Description Exceptions() -
Method Summary
Modifier and Type Method Description static RuntimeExceptionbubble(Throwable t)Prepare an uncheckedRuntimeExceptionthat will bubble upstream if thrown by an operator.static RuntimeExceptionfromSynchronization(Throwable t)Prepare an uncheckedRuntimeExceptionthat will bubble upstream for synchronization usage (i.e.static Throwableunwrap(Throwable t)
-
Constructor Details
-
Exceptions
public Exceptions()
-
-
Method Details
-
unwrap
-
bubble
Prepare an uncheckedRuntimeExceptionthat will bubble upstream if thrown by an operator.- Parameters:
t- the root cause- Returns:
- an unchecked exception that should choose bubbling up over error callback path.
-
fromSynchronization
Prepare an uncheckedRuntimeExceptionthat will bubble upstream for synchronization usage (i.e. on callingFuture.get()).- Parameters:
t- the root cause- Returns:
- an unchecked exception that should choose bubbling up over error callback path.
-