public class NegativeDivisorException extends Exception { private int divisor = 0; public NegativeDivisorException(){ }; public NegativeDivisorException(int divisor) { super("Attempted to divide by the negative number "); this.divisor = divisor; } public int getDivisor() { return divisor; } }