Added write exception and I/O exception interface.