Code example for HttpResponseException

Methods: e, getMessage, getStatusCode

0
            List<Map<String, String>> dummy = new ArrayList<Map<String, String>>();
            String targetUrl = params[0] + "?tel=" + params[1] + "&devid=" + params[2] + "&simserial=" + params[3];
            try { 
                RestfulClient.get(targetUrl, null, parser);
            } catch (HttpResponseException e){
                if(404 == e.getStatusCode()){
                    Log.d(TAG, "this android user is not found. try to regist.");
                    return dummy;
                } else { 
                    Log.e(TAG, e.getMessage(), e);
                    return dummy;
                } 
            } catch (Exception e) {
                Log.e(TAG, e.getMessage(), e);
                return dummy;
            } 
            return parser.getResults();
        } 
         
        /** 
         * UIスレッドでの処理用