Added README.txt and GPL Header to Source Files
[DHBWCampusApp.git] / app / src / main / java / de / dhbwloe / campusapp / network / IscRequestHelper.java
index f840366ef64509aa71eeb2e8fdd8dd82fdaaa56b..60c6d28af5a75c316a8e6c6b540ab99d665caf44 100644 (file)
@@ -1,5 +1,19 @@
+/* IscRequestHelper.java
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ */
 package de.dhbwloe.campusapp.network;
-
 import android.util.Log;
 
 import com.loopj.android.http.AsyncHttpClient;
@@ -43,7 +57,7 @@ public abstract class IscRequestHelper {
                 String error = null;
                 try {
                     error = new String(errorResponse, "US-ASCII");
-                } catch (UnsupportedEncodingException e1) {
+                } catch (Exception e1) {
                 }
                 Log.i("HTTPClient", "  Error: " + statusCode + " - " + error);
                 onCalendarRequestFail(statusCode, error);