raise the proper built-in exception properly