The class of the exceptional sets for a general asymptotic formula