Package io.lettuce.core.internal
Class Exceptions
- 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
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RuntimeException
bubble(Throwable t)
Prepare an uncheckedRuntimeException
that will bubble upstream if thrown by an operator.static RuntimeException
fromSynchronization(Throwable t)
Prepare an uncheckedRuntimeException
that will bubble upstream for synchronization usage (i.e.static Throwable
unwrap(Throwable t)
-
-
-
Method Detail
-
bubble
public static RuntimeException bubble(Throwable t)
Prepare an uncheckedRuntimeException
that 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
public static RuntimeException fromSynchronization(Throwable t)
Prepare an uncheckedRuntimeException
that 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.
-
-