Interface SNBTParseErrorCause

The cause of an SNBT parse error.

interface SNBTParseErrorCause {
    position: number;
    stack: [
        initialError: SNBTParseErrorCauseStackItem,
        ...outerStack: SNBTParseErrorCauseStackItem[],
    ];
}

Properties

Properties

position: number

The position of the error in the input.

stack: [
    initialError: SNBTParseErrorCauseStackItem,
    ...outerStack: SNBTParseErrorCauseStackItem[],
]

The stack trace of the error.