Add exception handle codes.