Allow method implementation to throw a Java throwable