add exception class for crams plugin