Changes exceptions hierarchy.