ZeroDivisionException
classin packageklyn
public class ZeroDivisionException extends UncheckedException:
└ ZeroDivisionException

Exception raised when an arithmetic operation divides by zero.

This is the canonical runtime exception for integer, floating-point, complex, rational, and vector division by zero.

Example
try:
value = 10 // 0
catch error as ZeroDivisionException:
println(error.message)
Inherited Properties
propertyInherited Properties from Exception: message
propertyInherited Properties from Object: type
Constructors
Modifier and Type Member Description
public ZeroDivisionException
ZeroDivisionException(message as String = "Division by zero"):
Creates a division-by-zero exception.
Inherited Methods
methodInherited Methods from UncheckedException: toString
methodInherited Methods from Exception: toString
methodInherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml