Exception utility class macro