public static RuntimeException asRuntime ( Throwable e ) { if ( e instanceof RuntimeException ) { return ( RuntimeException ) e ; } else { return new WrappedAsRuntimeException ( e ) ; } }
Casts or wraps the given exception to be a RuntimeException .