• Kipper

    v0.12.1
  • Downloads

  • Docs

  • Playground

  • Changelog

  • Kipper

    v0.12.1
    • Downloads

    • Docs

    • Playground

    • Changelog

      • next /
      • Kipper API /
      • Module /
      • @kipper/core /
      • errors
    Kipper Docs
    • next
    • latest
    • 0.11.0
    • 0.10.4
    • 0.9.2
    • Overview

    • Quickstart

    • Goals for Kipper

    • Supported platforms

    • Usage Examples

      • Overview

    • Variables

      • Overview

      • String Type

      • Number Type

      • Boolean Type

      • Void Type

      • Null Type

      • Undefined Type

      • Array Type

      • Overview

      • Tangled Expression

      • Arithmetic Expression

      • Assignment Expression

      • Conditional Expressions

      • Logical Expressions

      • Bitwise Expression

      • Relational Expressions

      • Convert Or Cast Expression

      • F-String Expression

      • Member Access Expression

      • Function Call Expression

      • Lambda Expression

      • Matches Expression

      • Overview

      • Expression Statement

      • If Statement

      • While Loop

      • Do-While Loop

      • For Loop

      • Compound Statement

      • Jump Statement

    • Functions

    • Interfaces

    • Classes

    • Comments

    • Built-in Functions

      • Overview

      • Compiler Setup

        • Overview

          • index

          • compiler

          • errors

          • logger

          • utils

          • config

          • index

          • index

        • Overview

        • new

        • run

        • compile

        • help

        • version

      • next /
      • Kipper API /
      • Module /
      • @kipper/core /
      • errors
    • next /
    • Kipper API /
    • Module /
    • @kipper/core /
    • errors

    Edit page

    Class: UnknownReferenceError

    errors.UnknownReferenceError

    Error that is thrown when an identifier is used that is unknown to the program.

    Since

    0.6.0

    Hierarchy

    • IdentifierError

      ↳ UnknownReferenceError

    Table of contents

    Constructors

    • constructor

    Properties

    • cause
    • tracebackData

    Accessors

    • col
    • filePath
    • line
    • programCtx
    • tokenSrc

    Methods

    • getTraceback
    • setTracebackData

    Constructors

    constructor

    • new UnknownReferenceError(identifier)

    Parameters

    Name Type
    identifier string

    Overrides

    IdentifierError.constructor

    Defined in

    kipper/core/src/errors.ts:529

    Properties

    cause

    • Optional cause: KipperError

    The cause of this error. This is used to chain errors together.

    Since

    0.12.0

    Inherited from

    IdentifierError.cause

    Defined in

    kipper/core/src/errors.ts:61


    tracebackData

    • tracebackData: TracebackMetadata

    The traceback metadata for this error. It contains the line and column of the error, the path to the file, the line of code that caused the error, and the token stream (source code) of the program.

    Since

    0.3.0

    Inherited from

    IdentifierError.tracebackData

    Defined in

    kipper/core/src/errors.ts:55

    Accessors

    col

    • get col(): undefined | number

    Returns the column where the error occurred.

    Since

    0.4.0

    Returns

    undefined | number

    Inherited from

    IdentifierError.col

    Defined in

    kipper/core/src/errors.ts:153


    filePath

    • get filePath(): undefined | string

    The path to the file where the error occurred.

    Since

    0.4.0

    Returns

    undefined | string

    Inherited from

    IdentifierError.filePath

    Defined in

    kipper/core/src/errors.ts:161


    line

    • get line(): undefined | number

    Returns the line where the error occurred.

    Since

    0.4.0

    Returns

    undefined | number

    Inherited from

    IdentifierError.line

    Defined in

    kipper/core/src/errors.ts:145


    programCtx

    • get programCtx(): undefined | KipperProgramContext

    Returns the program ctx containing the metadata of the program compilation in which the error occurred.

    Since

    0.10.2

    Returns

    undefined | KipperProgramContext

    Inherited from

    IdentifierError.programCtx

    Defined in

    kipper/core/src/errors.ts:184


    tokenSrc

    • get tokenSrc(): undefined | string

    Returns the token source where the error occurred.

    Since

    0.4.0

    Returns

    undefined | string

    Inherited from

    IdentifierError.tokenSrc

    Defined in

    kipper/core/src/errors.ts:169

    Methods

    getTraceback

    ▸ getTraceback(): string

    Get the traceback of this item.

    Note

    The metadata in this traceback should be set using setTracebackData.

    Since

    0.3.0

    Returns

    string

    Inherited from

    IdentifierError.getTraceback

    Defined in

    kipper/core/src/errors.ts:90


    setTracebackData

    ▸ setTracebackData(traceback): void

    Update traceback context data that are associated with this error.

    Since

    0.3.0

    Parameters

    Name Type Description
    traceback TracebackMetadata The traceback data.

    Returns

    void

    Inherited from

    IdentifierError.setTracebackData

    Defined in

    kipper/core/src/errors.ts:81

  • Developed at:

    • Releases
    • GitHub
    • Security
    • Issue Tracker
    • License
  • Copyright © 2021-2026 Luna Klatzer, 2024-2025 Lorenz Holzbauer & Fabian Baitura.
    Kipper is licensed under the GPL-3.0-or-later license.