Corrected exception inheritance.