Code example for UnknownHostException

Methods: getMessage

0
            resetConnection(); 
        } catch (ClientProtocolException e) {
            Log.e(TAG, "ClientProtocolException: Error uploading image: " + e.getMessage());
            resetConnection(); 
        } catch (UnknownHostException e) {
            Log.e(TAG, "UnknownHostException: Error uploading image: " + e.getMessage());
            resetConnection(); 
        } catch (NoHttpResponseException e) {
            // Silently ignore this. 
        } catch (IOException e) {
            Log.e(TAG, "IOException: Error uploading image: " + e.getMessage());
            resetConnection(); 
        } 
        finally { 
            out.reset();
            if (mCamera != null) {
                mCamera.addCallbackBuffer(mCallbackBuffer);
            } 
            isUploading = false;
        }