Division by zero and other "standard" arithmetic errors are handled by the runtime or library of classes that are not aware of your custom exception. You can use your own exceptions only in your own code, briefly throw using them when appropriate.
Of course, you can catch any arithmetic exceptions thrown by the class library and wrap them in your own exceptions:
try { ... } catch (java.lang.ArithmeticException exc) { throw new MyException("An arithmetic error occurred", exc); }
source share