Guides

Error Handling Guide

How to handle errors thrown by the library, including error types and recovery patterns.

How to handle errors thrown by the library, including error types and recovery patterns.

TODO: Add your own content to this guide. The sections below are auto-generated from code.

Error Types

createBypass()

Creates a new bypass record, writes it to .forge-bypass.json, and appends an audit event.

(rootDir: string, reason: string, rule?: string, config?: Partial<BypassConfig>) => BypassRecord

Throws

  • Error when the daily bypass budget is exhausted.

getAdapter()

Get a registered adapter by target name. Throws if the target is not registered.

(target: SSGTarget) => SSGAdapter

Throws

  • Error if the target is not registered.

On this page