Throws the supplied throwable as a runtime exception, wrapping checked throwables. @param throwable the throwable to rethrow @return never returns normally
(Throwable throwable)
| 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 |