updated exceptions for Rational.java