Show custom error message for classes not playing role