Use the appropriate exception class.