On 2/20/12 1:32 PM, Juan Manuel Cabo wrote:
So, if your boss wants the URL of the request that was made
when the standard library threw you a FileNotFoundException,
you can do:


        try {
              ...
         } catch (Exception ex) {
                 //Rethrow the exception with the added detail:
                ex.details["custom_url"] = getenv("URI");
                 throw ex;
         }

That's a very interesting angle!

Andrei


Reply via email to