Interface SNBTParseErrorOptions

The options for an SNBT parse error.

interface SNBTParseErrorOptions {
    cause: SNBTParseErrorCause;
    originalInput?: string;
    resolved?: boolean;
}

Hierarchy

  • ErrorOptions
    • SNBTParseErrorOptions

Properties

The cause of the error.

originalInput?: string

Only set this if resolved is also true, this is the original input of the SNBT parser function.

resolved?: boolean

Whether the error's full stack has been resolved.

Only set this to true if this was from a function that was not called by another SNBT parser function, if the SNBT parser has more to the stack, this should be false.

false