Update book entity to handle exception