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

« страшно было,... || Учитесь... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home