Github user krichter722 commented on the issue:

    https://github.com/apache/commons-fileupload/pull/13
  
    > I run my FooDiskFileItem that throws an Exception (not an IOException).
    
    How? If `DiskItem.write` doesn't throw `Exception` `FooDiskItem.write` 
can't.
    
    > My new code obviously does not catch that Exception and it percolates up 
the stack.
    
    That's what you want because that's the meaning of a raw `Exception`  and 
that's why `throws Exception` and `catch(Exception)` is generally a bad idea. 
The system works, it just might cause an inconvenience in this situation where 
idioms have not been used correctly in the first place. I don't think the 
situation is possible, though because `FooDiskItem.write` in 1.4.x can't throw 
Exception anymore.


---

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to