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 your code will never encounter this error condition or that it is not important to

Read More