Added getDetails() method to IOException
Better error output, check for getDetails() method and display it