In trunk, all instances of MathException should be replaced by a more specific object from the new exception package.