{
  "id": "@typed/router#CatchHandler",
  "canonicalId": "@typed/router#CatchHandler",
  "symbol": {
    "id": "@typed/router#CatchHandler",
    "packageName": "@typed/router",
    "moduleName": ".",
    "exportName": "CatchHandler",
    "kind": "type",
    "signatures": [
      "export type CatchHandler<E, A, E2, R2> = (cause: RefSubject.RefSubject<Cause.Cause<E>>) => Fx.Fx<A, E2, R2>;"
    ],
    "summary": "A reactive complete-cause handler that produces fallback Fx output.",
    "sections": {
      "Why": "Error boundaries can respond to failure, defect, or interruption without erasing cause structure.",
      "Ownership and lifetime": "The catch manager invokes the handler inside a child Scope. That Scope owns the cause RefSubject and returned fallback Fx until recovery is replaced or routing stops."
    },
    "examples": [],
    "relations": [],
    "source": {
      "file": "packages/router/src/Matcher.ts",
      "line": 124
    },
    "since": "1.0.0",
    "category": "Route recovery"
  },
  "exposure": {
    "recordKind": "declaration",
    "id": "@typed/router#CatchHandler",
    "packageName": "@typed/router",
    "packageVersion": "1.0.0-beta.7",
    "moduleName": ".",
    "consumerSpecifier": "@typed/router",
    "exportName": "CatchHandler",
    "qualifiedName": "CatchHandler",
    "declarationKey": "declaration:9baebb3664728e9cd28c1de5",
    "family": "type-alias",
    "signatures": [
      "export type CatchHandler<E, A, E2, R2> = (cause: RefSubject.RefSubject<Cause.Cause<E>>) => Fx.Fx<A, E2, R2>;"
    ],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 124,
          "column": 1
        },
        "end": {
          "line": 126,
          "column": 23
        }
      }
    ],
    "aliases": [
      "@typed/router/Matcher#CatchHandler"
    ],
    "isAlias": false,
    "static": false
  },
  "declaration": {
    "declarationKey": "declaration:9baebb3664728e9cd28c1de5",
    "name": "CatchHandler",
    "family": "type-alias",
    "facets": [
      {
        "family": "type-alias",
        "syntaxKind": "TypeAliasDeclaration",
        "signatures": [
          "export type CatchHandler<E, A, E2, R2> = (cause: RefSubject.RefSubject<Cause.Cause<E>>) => Fx.Fx<A, E2, R2>;"
        ],
        "typeParameters": [
          "E",
          "A",
          "E2",
          "R2"
        ],
        "sourceSpans": [
          {
            "file": "packages/router/src/Matcher.ts",
            "start": {
              "line": 124,
              "column": 1
            },
            "end": {
              "line": 126,
              "column": 23
            }
          }
        ],
        "static": false,
        "readonly": false,
        "optional": false
      }
    ],
    "signatures": [
      "export type CatchHandler<E, A, E2, R2> = (cause: RefSubject.RefSubject<Cause.Cause<E>>) => Fx.Fx<A, E2, R2>;"
    ],
    "typeParameters": [
      "E",
      "A",
      "E2",
      "R2"
    ],
    "summary": "A reactive complete-cause handler that produces fallback Fx output.",
    "sections": {
      "Why": "Error boundaries can respond to failure, defect, or interruption without erasing cause structure.",
      "Ownership and lifetime": "The catch manager invokes the handler inside a child Scope. That Scope owns the cause RefSubject and returned fallback Fx until recovery is replaced or routing stops."
    },
    "examples": [],
    "sourceSpans": [
      {
        "file": "packages/router/src/Matcher.ts",
        "start": {
          "line": 124,
          "column": 1
        },
        "end": {
          "line": 126,
          "column": 23
        }
      }
    ],
    "since": "1.0.0",
    "category": "Route recovery"
  }
}
