\"The major difference between a thing that might go wrong and a thing that cannot possibly go wrong is that when a thing that cannot possibly go wrong go
You can convert a checked exception to an unchecked by nestling it inside a RuntimException. If the exception is caught higher up in the stack and outputted using printStackTrace(), the stack for the original exception will be displayed as well.
try {
// code...
}
catch (IOException e) {
throw new RuntimeException(e);
}
This is a good solution, that you shouldn't hesitate to use in these situations.