UNPKG

e2ed

Version:

E2E testing framework over Playwright

37 lines (36 loc) 917 B
import type { E2edPrintedFields, LogParams, RunLabel, UtcTimeInMs } from '../../types/internal'; /** * Extended Error class for e2ed. */ declare class E2edError extends Error { /** * Error message. */ readonly message: string; /** * Optional params of error. */ readonly params: LogParams | undefined; /** * Current runLabel at the time the error was created */ readonly runLabel: RunLabel | undefined; /** * Current V8 stack trace (if available). */ readonly stackTrace: readonly string[]; /** * The time the error was generated. */ readonly utcTimeInMs: UtcTimeInMs; constructor(rawMessage: string, params?: LogParams); /** * Custom JSON presentation of error. */ toJSON(): E2edPrintedFields; /** * Custom string presentation of error. */ toString(): string; } export { E2edError };