@neutrium/quantity - v5.0.0
    Preparing search index...

    Class QuantityParseError

    A parsing error located in the original input (offsets use JavaScript UTF-16 indices).

    Hierarchy

    • SyntaxError
      • QuantityParseError
    Index
    • Parameters

      • code: QuantityParseErrorCode

        Stable category suitable for application logic.

      • input: string

        Original expression, without Unicode or whitespace normalization.

      • offset: number

        Zero-based UTF-16 index of the error, or input.length for missing input.

      • reason: string
      • expected: readonly string[] = []

        Expected token hints when available; empty for evaluation failures.

      Returns QuantityParseError

    cause?: unknown

    Stable category suitable for application logic.

    column: number

    One-based UTF-16 column in the original input.

    expected: readonly string[] = []

    Expected token hints when available; empty for evaluation failures.

    input: string

    Original expression, without Unicode or whitespace normalization.

    line: number

    One-based line in the original input.

    message: string
    name: string
    offset: number

    Zero-based UTF-16 index of the error, or input.length for missing input.

    stack?: string