Proxy'ing a "throw exception"
<p>Suppose I have the code below that needs to throw an exception from withing an anonymous function without modifying the function:</p>

<pre><code>FOO.doSomething(new Transactable(){
 public void run(FOO foo) {
     // How to proxy a exception throw
     // from here, without modifying the class
 }
});
</code></pre>

<p>Like:</p>

<pre><code>@Override
public void run() throws MyCustomException{
       FOO.doSomething(new Transactable(){
           public void run(FOO foo) {
               // How to proxy a exception throw
               // from here, without modifying the class
           }
        });             
}
</code></pre>
