Code example for UndeclaredThrowableException

0
        	// generated: catch the exception throwed by interface method and re-throw it 
        	throw e;
        } catch (Error e) {
        	throw e;
        } catch (Throwable e) {
        	throw new UndeclaredThrowableException(e);
        } 
        return result;
    } 
 
    public int getKala(float kalamees) {
    	Integer result =  null;
        try { 
        	// invocation is also generated 
            result = (Integer) handler.invoke(this, ProxySampleInterface_ReturnsBasic.class.getMethod("getKala", new Class[] {Float.TYPE}), new Object[] {new Float(kalamees)});
        } catch (ClassCastException e) {
        	throw e;
        } catch (NoSuchMethodException e) {
        	// ignore, the method has to be found, as this class is generated 
        } catch (RuntimeException e) {
        	throw e;