adds exception class