extracting class to hold exception data