Add hierarchy to the exceptions