ZeroDivisionException
class in package klyn

    public class ZeroDivisionException extends UncheckedException:

Object
└ Exception
└ 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
property Inherited Properties from Exception: message
property Inherited 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
method Inherited Methods from UncheckedException: toString
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml