change exception class macro