Member Junction
    Preparing search index...

    Thrown when the working-DB apply/capture fails DURING a bake — carries the already-transpiled transpiledBody so the caller can still write it to .needs-hand instead of discarding it for a bare error stub (issue #3252 review P2). The transpiled DDL is computed BEFORE the first db.apply can throw and is the expensive, useful artifact; a working-DB failure (a dependent-view CASCADE, a mid-sequence metadata corruption) must not throw it away. Distinct from a convertMigration failure (which has no body to preserve and propagates as an ordinary error).

    Hierarchy

    • Error
      • BakeApplyError
    Index

    Constructors

    Properties

    cause?: unknown
    fileName: string
    message: string
    name: string
    stack?: string
    transpiledBody: string
    prepareStackTrace?: (err: Error, stackTraces: CallSite[]) => any

    Optional override for formatting stack traces

    stackTraceLimit: number

    Methods

    • Create .stack property on a target object

      Parameters

      • targetObject: object
      • OptionalconstructorOpt: Function

      Returns void