Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/testing / VcrMissError

Class: VcrMissError

Defined in: packages/testing/src/vcr.ts:413

Typed hermetic-miss error; onMiss: 'throw' raises it on any request without a servable row. recordedOccurrences above zero means the hash WAS recorded but every occurrence is already consumed (replay serves each recorded exchange once, in recorded order); absent or zero means the request was never recorded at all (v1.29.0 review P2).

Extends

  • Error

Constructors

Constructor

ts
new VcrMissError(
   adapterId, 
   hash, 
   recordedOccurrences?): VcrMissError;

Defined in: packages/testing/src/vcr.ts:417

Parameters

ParameterType
adapterIdstring
hashstring
recordedOccurrences?number

Returns

VcrMissError

Overrides

ts
Error.constructor

Properties

PropertyModifierTypeDescriptionDefined in
recordedOccurrences?readonlynumberRows recorded for this hash; absent or 0 = never recorded.packages/testing/src/vcr.ts:416
requestHashreadonlystring-packages/testing/src/vcr.ts:414