3 ms·
You can always opt out of the typed checked exceptions. try { ... } except (IOException|NoSuchElementException e) { throw new RuntimeEx
by krab 7y ago
You can always opt out of the typed checked exceptions.
try {
...
} except (IOException|NoSuchElementException e) {
throw new RuntimeException(e);
}
If you decide you don't want checked exceptions in your code, wrapping the exceptions at the boundaries is not a huge deal.
- paulddraper 7y agoOr switch to a language that does that for you, like Scala or Kotlin.