public final class UncheckedThrow extends Object
@throws declaration for implementers who might want to handle or declare it voluntarily.| Modifier and Type | Method and Description |
|---|---|
static RuntimeException |
throwUnchecked(Throwable thrown)
This method throws the specified checked exception, using generic type erasure to enable client
methods to propagate checked exceptions without being required to declare them.
|
public static RuntimeException throwUnchecked(Throwable thrown)
thrown - exception to be thrownCopyright © 2017. All rights reserved.