public class Calculator {
    static int divideEvenly(int a, int b) throws DivisorException {
        if (b == 0) throw new DivisorException("Cannot divide by zero!");
        if (a % b != 0) throw new DivisorException(a + " is not evenly divisible by " + b + "!");
        return a / b;
    }
}

class DivisorException extends Exception {
    DivisorException(String message) { super(message); }
}
