Tag: exceptions

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

Tagged with: ,
Top