Add exception in IOclass