uCalc API Version: 2.1.3-preview.2 Released: 6/16/2026

Warning

uCalc API Preview Release Notice:The documentation describes the intended behavior of the API. The current preview build contains incomplete features, unoptimized performance, and is subject to breaking changes.

ErrorCode

Enum

Product: 

Class: 

Error numbers/messages that uCalc may return

Name Value Description
None

No error

FloatInexact 1

Inexact result

FloatUnderflow 2

Floating point underflow

FloatOverflow 4

Floating point overflow

FloatDivisionByZero 8

Division by 0

FloatInvalid 16

Invalid floating point value

Dynamically_Defined 256

Dynamically defined user error

Syntax_Error

Syntax error

Undefined_Identifier

Undefined identifier

FileNotFound

File not found

Unrecognized_Token

Unrecognized token

Unrecognized_Command

Unrecognized command

Datatype_Mismatch

Data type mismatch

Invalid_Argument_Count

Invalid number of arguments

Invalid_Definition

Invalid definition

Bracket_Error

Bracket delimiter error

Undefined_Callback

Undefined callback

ErrorMessageAlreadyDefined

Error message already defined

ItemCannotBeModified

This item cannot be modified

Unrecognized_Class_Member

Unrecognized class member

Unrecognized_Namespace_Member

Unrecognized namespace member

Unbalanced_Quote

Unbalanced quote

ValueCannotBeAssigned

Value cannot be assigned here

ReParseOverflow

Reparsing has passed the specified limit

Array_Bounds_Exceeded

Array or list bound exceeded

Remarks

This is the "built-in" list of errors that uCalc can return or that you can raise with [topic: uCalc.Callback.ErrorRaise]. If no error was raised, then ErrorCode.None is returned.

[topic: uCalc.Callback.ErrorRaiseMessage] internally calls the Dynamically_Defined member.

Examples