remove legacy exception class