add the exception handle