Fixed exception inheritance.