fix exception declaration