Skip to content

EvalCapExceededError

Thrown when one evalInObsidian closure ran longer than the transport’s per-eval cap.

Carries the cap and the transport so a caller can instanceof-match, and the original transport error as cause.

Import:

import { EvalCapExceededError } from 'obsidian-integration-testing';

Signature:

export class EvalCapExceededError extends Error

Extends: Error

Constructor

new EvalCapExceededError(params: EvalCapExceededErrorConstructorParams)

Creates the error from the cap, the transport, and the raw error it replaces.

Properties

PropertyTypeDescription
capInMillisecondsnumberThe per-eval cap the closure outran, in milliseconds.
transportNamestringHow the transport that enforced the cap was named in the message.

Links to this page: