Update throws Exception to throws IOException