Use exception declaration from scan.errors.