not yours but, throw new IOException(e) instead of e.getMessage()