Add raises for checking exceptions