Use the proper exception class.