From 9a4c7a2ce8b0d31496291e6f3fede26a8c8f3d30 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 29 Nov 2011 07:03:38 +0300 Subject: improve error handling by ApiRequest --- res/values/strings.xml | 27 ++++++++++++++++++++------- 1 file changed, 20 insertions(+), 7 deletions(-) (limited to 'res/values') diff --git a/res/values/strings.xml b/res/values/strings.xml index 9f82a190..2bd63ab7 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -23,9 +23,6 @@ Light Connection HTTP Authentication - Login failed: API disabled. - Login failed: no data received. - Login failed: username or password incorrect. Logged in. No unread feeds. No unread headlines. @@ -35,15 +32,11 @@ Refresh feeds Close article Share article - Could not decode content (UnsupportedEncodingException) Sort feeds by unread count Load more... Show all articles Show unread articles Accept any SSL certificate - Error: no data received. - No feeds to display. - Error: invalid object received. Log sent and received data Toggle starred @@ -57,4 +50,24 @@ Download and display feed icons Enable feed categories Close category + No feeds to display + No headlines to display + + Error: %1$s + + No error + Error: Unknown error (see log) + Error: 401 unauthorized + Error: 403 forbidden + Error: 404 not found + Error: 500 server error + Error: other HTTP error (see log) + Error: SSL certificate rejected + Error: JSON parse failed + Error: I/O failure (server down?) + Error: unknown error (see log) + Error: API disabled for this user + Error: unknown API error (see log) + Error: username or password incorrect + -- cgit v1.2.3