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
def divide(divisor as Int) as Int:
    return 10 // divisor

try:
    divide(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 Object: deepCopy, fromJson, hash, toDict, toJson, toMap, toString, toXml