interface Base { /** * @throws java.lang.RuntimeException if something wrong happens */ void test(); } class Test implements Base { /** * @throws java.lang.RuntimeException {@inheritDoc} * @throws java.lang.Error */ public void test() { } }