Skip to content

OwnedInstanceExitedErrorConstructorParams

Parameters for the OwnedInstanceExitedError constructor.

Everything but the URL is optional: the exit details come from the process that launched the instance, and a caller in another process has them only when the exit marker survived (see owned-instance-exit-marker.ts).

Import:

import type { OwnedInstanceExitedErrorConstructorParams } from 'obsidian-integration-testing';

Signature:

export interface OwnedInstanceExitedErrorConstructorParams

Properties

PropertyTypeDescription
cdpUrlstringThe CDP URL the dead instance was serving.
code?null | number | undefinedExit code, when known.
exitedAtInMilliseconds?number | undefinedWhen the instance exited (Date.now() epoch milliseconds), when known.
outputTail?string | undefinedThe tail of what the instance wrote to stdout/stderr, when any was captured.
pid?number | undefinedPID of the dead instance, when known.
signal?NodeJS.Signals | null | undefinedTerminating signal, when known.
spawnError?string | undefinedThe spawn-failure message when the instance never started, otherwise absent.