zero_div_err

Returns an error when an attempt is made to divide or take a modulo by zero.

This function does not generate an event.

Function

zero_div_err([message])

Arguments

Argument Type Description
message str (optional) Alternative error message.

Return value

An error value.

Example

This code shows zero_div_err():

zero_div_err();

Return value in JSON format

{
    "!": "zero_div_err()",
    "error_code": -58,
    "error_msg": "division or module by zero"
}