An exception can be thrown using the throw keyword:
throw
throw new ArithmeticException("Cannot divide by zero");