time-to-botec

Benchmark sampling in different programming languages
Log | Files | Refs | README

IError.d.ts (969B)


      1 import { LocationRange } from "peggy";
      2 import { Frame, FrameStack } from "../reducer/frameStack.js";
      3 import { ErrorMessage } from "./messages.js";
      4 export declare class IRuntimeError extends Error {
      5     m: ErrorMessage;
      6     frameStack: FrameStack;
      7     private constructor();
      8     static fromMessage(message: ErrorMessage): IRuntimeError;
      9     static fromMessageWithFrameStack(message: ErrorMessage, frameStack: FrameStack): IRuntimeError;
     10     static fromException(exn: unknown): IRuntimeError;
     11     toString(): string;
     12     toStringWithDetails(): string;
     13     getTopFrame(): Frame | undefined;
     14     getFrameArray(): Frame[];
     15 }
     16 export declare function rethrowWithFrameStack(err: unknown, frameStack: FrameStack): never;
     17 export declare class ICompileError extends Error {
     18     message: string;
     19     location: LocationRange;
     20     constructor(message: string, location: LocationRange);
     21     toString(): string;
     22     toStringWithDetails(): string;
     23 }
     24 //# sourceMappingURL=IError.d.ts.map