Atrium — shared contracts and the typesetting engine
    Preparing search index...

    Function internalError

    • An engine bug, converted into output. compile() never throws (see its doc comment), so the last thing it does with an unexpected exception is turn it into one of these.

      Parameters

      • file: string
      • cause: unknown

      Returns {
          code?:
              | "syntax"
              | "unsupported"
              | "undefined-command"
              | "undefined-environment"
              | "undefined-reference"
              | "duplicate-label"
              | "missing-file"
              | "missing-font"
              | "overfull-box"
              | "underfull-box"
              | "budget-exceeded"
              | "limit-exceeded"
              | "stopped"
              | "internal";
          column?: number;
          construct?: string;
          file: string;
          line: number;
          message: string;
          severity: "error"
          | "warning"
          | "info";
      }