Beware: comments misleadingly refer to DivisionByZeroError as an exception, although it is actually an error, as its name suggests. Therefore, catching Exception instead of Error or Throwable in a try-catch block will not work and will result in a fatal error.