Blog Archives

Android Don’t Ignore Exceptions

Sometimes it is tempting to write code that completely ignores an exception like this: void setServerPort(String value) { try { serverPort = Integer.parseInt(value); } catch (NumberFormatException e) { } } You must never do this. While you may think that

Posted in Android, Tips and Tricks Tagged with: ,