HeadMethod head = new HeadMethod(uri.toString());\r
try {\r
returnCode = client.executeMethod(head);\r
+ } catch (HttpException e) {\r
+ Log.e(TAG, "HTTP exception trying to login at " + uri.getEncodedPath(), e);\r
+ } catch (IOException e) {\r
+ Log.e(TAG, "I/O exception trying to login at " + uri.getEncodedPath(), e);\r
} catch (Exception e) {\r
- Log.e(TAG, "Error: " + e.getMessage());\r
+ Log.e(TAG, "Unexpected exception trying to login at " + uri.getEncodedPath(), e);\r
}\r
return returnCode;\r
}\r