ZeroDivisionSyntaxError
class in package klyn

    public class ZeroDivisionSyntaxError extends SyntaxError:

Object
└ Exception
└ SyntaxError
└ ZeroDivisionSyntaxError

Exception thrown by the compiler when a division by zero is proven at compile time.

This error is distinct from `ZeroDivisionException`, which is raised at runtime when the divisor cannot be determined statically.

    try:
    eval("""result = 10 / 0""")
    catch error as ZeroDivisionSyntaxError:
    print(error.message)

Inherited Properties
property Inherited Properties from Exception: message
property Inherited Properties from Object: type
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | ZeroDivisionSyntaxError `ZeroDivisionSyntaxError(message as String = "Division by zero constant"):` | Creates a new compile-time division-by-zero error.

Inherited Methods
method Inherited Methods from Exception: toString
method Inherited Methods from Object: deepCopy, fromJson, toDict, toJson, toString, toXml