| public static void rethrow(Throwable throwable) throws Error, RuntimeException Designed to be used in conjunction with isFatal(Throwable).
This method should be used with care.
The input throwable is thrown if it is an Error or a RuntimeException.
Otherwise, the method wraps the throwable in a RuntimeException and rethrows that.
- Parameters
- throwable:Throwable
to check
- Exceptions
- Error:
- the input throwable if it is an
Error.
- RuntimeException:
- the input throwable if it is an
RuntimeException Otherwise wraps the throwable in a RuntimeException.
|