How to pass catch block statement another Activity?
<p>How to pass catch block value to another Activity? My Activity work fine when access URL and get XML response when server is busy or not respond, How do I pass catch block statement to another Activity? </p>

<pre><code>       public class AgAppHelperMethods
       {
         private static final String LOG_TAG = null;
         public static String varMobileNo;
         public static String varPinNo;
         String[][] xmlRespone = null;
         public static String[][] AgAppXMLParser( String parUrl)
         {
    String _node,_element;
            String[][] xmlRespone = null;
            HttpURLConnection urlConnection = null;
            try
               {        
                String url = parUrl;
                URL finalUrl = new URL(url);    
            urlConnection = (HttpURLConnection) finalUrl.openConnection();
                urlConnection.connect();
            DocumentBuilderFactory dbf =  
    DocumentBuilderFactory.newInstance();
        DocumentBuilder db = dbf.newDocumentBuilder();
        Document doc = db.parse(new  
                    InputSource(urlConnection.getInputStream()));
        doc.getDocumentElement().normalize();
                NodeList list=doc.getElementsByTagName("*");
            _node=new String();
            _element = new String();
            xmlRespone = new String[list.getLength()][2];
            for (int i=0;i&lt;list.getLength();i++)
                {
                    Node value=list.item(i).getChildNodes().item(0);
                    _node=list.item(i).getNodeName();
                    _element=value.getNodeValue();
                    xmlRespone[i][0] = _node;
                    xmlRespone[i][1] = _element;

                }//end for

            urlConnection.disconnect();

        }//end try

    catch (Exception e)
    {
        Log.e(LOG_TAG, "CONNECTION ERROR O SERVER NOT RESPONDING", e);
    } 
    return xmlRespone;         

}
</code></pre>
