fix exception syntax