Update some files to use new exception syntax