Exception to, not of

Exception to, not of

Don’t Say:
This is an exception of the rule.

Say:
This is an exception to the rule.

Note:
We say with the exception of: She liked all her subjects with the exception of physics.