public class ManExceptionUtil
extends java.lang.Object
| Constructor and Description |
|---|
ManExceptionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.RuntimeException |
unchecked(java.lang.Throwable t)
Throws an unchecked exception without having to declare or catch it.
|
public static java.lang.RuntimeException unchecked(java.lang.Throwable t)
t - Any exceptionRuntimeException return type is here so you can do this:throw ManExceptionUtil.uncheck(new SomeException())Copyright © 2022. All rights reserved.