Exception handling
Date: 09/12/06
(Code WTF) Keywords: security
try{ ... } catch(Exception e) { if(e.toString().indexOf(".SecurityException")>0) { networkErrorStr ="Application not authorized to access http connection."; } }
Source: http://community.livejournal.com/code_wtf/51195.html
|