java.lang.Object
is.codion.common.utilities.exceptions.Exceptions
Exception handling utilities.
-
Method Summary
Modifier and TypeMethodDescriptionstatic RuntimeExceptionReturns the givenThrowablein case it is a RuntimeException or else a RuntimeException wrapping it.static Throwableunwrap(Throwable throwable, Collection<Class<? extends Throwable>> unwrap) Unwraps the given throwable.
-
Method Details
-
runtime
Returns the givenThrowablein case it is a RuntimeException or else a RuntimeException wrapping it.- Parameters:
throwable- the throwableunwrap- unwraps these exceptions
-
unwrap
Unwraps the given throwable.- Parameters:
throwable- the exception to unwrapunwrap- the exception types to unwrap- Returns:
- the unwrapped exception
-