MCPcopy Create free account
hub / github.com/apache/groovy / throwRuntimeException

Method throwRuntimeException

src/main/java/groovy/lang/Closure.java:578–584  ·  view source on GitHub ↗

Throws the supplied throwable as a runtime exception, wrapping checked throwables. @param throwable the throwable to rethrow @return never returns normally

(Throwable throwable)

Source from the content-addressed store, hash-verified

576 * @return never returns normally
577 */
578 protected static Object throwRuntimeException(Throwable throwable) {
579 if (throwable instanceof RuntimeException) {
580 throw (RuntimeException) throwable;
581 } else {
582 throw new GroovyRuntimeException(throwable.getMessage(), throwable);
583 }
584 }
585
586 /**
587 * @return the owner Object to which method calls will go which is

Callers 1

callMethod · 0.95

Calls 1

getMessageMethod · 0.45

Tested by

no test coverage detected