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 `ZeroDivisionError`, which is raised at runtime when the divisor cannot be determined statically.

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

Properties inherited from Exception: message
Properties inherited 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.

Methods inherited from Exception: toString
Methods inherited from Object: fromJson, toDict, toJson, toString, toXml