@usearazzo/runner 1.0.1-alpha.17 → 1.0.1-alpha.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/types/runner.d.ts CHANGED
@@ -185,6 +185,7 @@ export declare class ArazzoRunner {
185
185
  * Loads the entry Arazzo document at `uri` (a file system path or URL) and
186
186
  * returns a runner bound to it.
187
187
  *
188
+ * @throws DocumentLoadError - When the document cannot be read or loaded
188
189
  * @throws UnmatchedProviderError - When no provider can load the document
189
190
  * @throws InvalidEntryDocumentError - When the document is not an Arazzo
190
191
  * document, or the given registry already backs another entry document
@@ -544,6 +545,11 @@ export declare interface CriterionEvaluatorOptions {
544
545
  */
545
546
  export declare type CriterionPredicate = (criterion: CriterionElement) => boolean;
546
547
 
548
+ /** @public */
549
+ export declare class DocumentLoadError extends ArazzoRunnerError {
550
+ readonly uri?: string;
551
+ }
552
+
547
553
  /**
548
554
  * Registry for API documents keyed by canonical URI.
549
555
  *
@@ -563,6 +569,9 @@ export declare class DocumentRegistry {
563
569
  * Acquires a document by URI. Returns cached document if available,
564
570
  * otherwise detects the format, loads via the matching provider,
565
571
  * caches, and returns it.
572
+ *
573
+ * @throws DocumentLoadError - When the document cannot be read or loaded
574
+ * @throws UnmatchedProviderError - When no provider can load the document
566
575
  */
567
576
  acquire(uri: string): Promise<APIDocument>;
568
577
  /**
@@ -578,6 +587,10 @@ export declare class DocumentRegistry {
578
587
  /**
579
588
  * Acquires the entry Arazzo document and marks it with `isEntry: true`.
580
589
  * Validates that the document is an Arazzo specification.
590
+ *
591
+ * @throws DocumentLoadError - When the document cannot be read or loaded
592
+ * @throws UnmatchedProviderError - When no provider can load the document
593
+ * @throws InvalidEntryDocumentError - When the document is not an Arazzo document
581
594
  */
582
595
  acquireEntryDocument(uri: string): Promise<ArazzoDocument>;
583
596
  clear(): void;