diff --git a/src/main/java/Rational/Rational.java b/src/main/java/Rational/Rational.java index b032afb..fc6fa5a 100644 --- a/src/main/java/Rational/Rational.java +++ b/src/main/java/Rational/Rational.java @@ -86,7 +86,7 @@ public class Rational { // COMPLETED - Instance method - this / other public Rational divide(Rational other) { if (other.numerator == 0) { - throw new ArithmeticException("Invalid division. Denominator will be zero"); + throw new ArithmeticException("Caught division by zero"); } int newNumerator = this.numerator * other.denominator;