you can swallow an exception in java by simply having an empty exception case.
Exceptions are certainly more robust, but purposely ignoring errors can be done with exceptions too.
Exceptions are certainly more robust, but purposely ignoring errors can be done with exceptions too.
try {
// do stuff
} except( Exception e) {
// ignore
}
and yes, I've seen it often.I will agree that it's not possible to accidentally ignore an exception, since it will likely crash your application.