Interface TwingParsingError

interface TwingParsingError {
    location: TwingErrorLocation;
    message: string;
    name: "TwingParsingError";
    previous: any;
    rootMessage: string;
    source: TwingSource;
    stack?: string;
    addSuggestions(name: string, items: string[]): void;
    appendMessage(message: string): void;
}

Hierarchy (view full)

Properties

message: string
name: "TwingParsingError"
previous: any
rootMessage: string
source: TwingSource
stack?: string

Methods

  • Tweaks the error message to include suggestions.

    Parameters

    • name: string

      The original name of the item that does not exist

    • items: string[]

      An array of possible items

    Returns void