{
  "author": "Voodflow",
  "license": "MIT",
  "description": "Catch: Handle errors with success/error branches",
  "version": "1.0.0",
  "nodes": [
    {
      "id": "dummy_data_node-catch-ex-001",
      "type": "dummy_data_node",
      "position": { "x": -600, "y": -50 },
      "data": {
        "label": "API Response",
        "description": "Simulated payload",
        "data_type": "json",
        "content": "{\n  \"user_id\": 42,\n  \"action\": \"send_notification\",\n  \"email\": \"alice@example.com\"\n}",
        "icon": "heroicon-o-document-arrow-down",
        "iconType": "heroicon",
        "color": "emerald",
        "display_name": "Dummy Data",
        "isNew": true,
        "isExpanded": true,
        "positioning": { "input": false, "output": true },
        "config": {
          "label": "API Response",
          "data_type": "json",
          "content": "{\n  \"user_id\": 42,\n  \"action\": \"send_notification\",\n  \"email\": \"alice@example.com\"\n}",
          "positioning": { "input": false, "output": true },
          "isExpanded": true
        }
      },
      "measured": { "width": 450, "height": 350 }
    },
    {
      "id": "catch-catch-ex-002",
      "type": "catch",
      "position": { "x": 0, "y": -50 },
      "data": {
        "label": "Catch Errors",
        "description": "Intercept upstream errors",
        "catch_error_codes": [],
        "log_error": true,
        "clear_error": true,
        "icon": "heroicon-o-shield-exclamation",
        "iconType": "heroicon",
        "color": "yellow",
        "display_name": "Catch",
        "isNew": true,
        "isExpanded": true,
        "positioning": {
          "input": true,
          "output": [
            { "id": "success", "label": "Success", "color": "emerald", "position": "right" },
            { "id": "error", "label": "Error", "color": "rose", "position": "right" }
          ]
        },
        "config": {
          "label": "Catch Errors",
          "description": "Intercept upstream errors",
          "catch_error_codes": [],
          "log_error": true,
          "clear_error": true,
          "positioning": {
            "input": true,
            "output": [
              { "id": "success", "label": "Success", "color": "emerald", "position": "right" },
              { "id": "error", "label": "Error", "color": "rose", "position": "right" }
            ]
          },
          "isExpanded": true
        }
      },
      "measured": { "width": 500, "height": 400 }
    },
    {
      "id": "data_viewer_node-catch-ex-003",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": -250 },
      "data": {
        "label": "Success",
        "description": "Upstream succeeded",
        "view_mode": "auto",
        "icon": "heroicon-o-table-cells",
        "iconType": "heroicon",
        "color": "slate",
        "display_name": "Data Viewer",
        "isNew": true,
        "config": { "label": "Success", "description": "Upstream succeeded", "view_mode": "auto" }
      },
      "measured": { "width": 450, "height": 300 }
    },
    {
      "id": "data_viewer_node-catch-ex-004",
      "type": "data_viewer_node",
      "position": { "x": 650, "y": 150 },
      "data": {
        "label": "Error",
        "description": "Upstream failed",
        "view_mode": "auto",
        "icon": "heroicon-o-table-cells",
        "iconType": "heroicon",
        "color": "slate",
        "display_name": "Data Viewer",
        "isNew": true,
        "config": { "label": "Error", "description": "Upstream failed", "view_mode": "auto" }
      },
      "measured": { "width": 450, "height": 300 }
    }
  ],
  "edges": [
    {
      "id": "edge-dummy-to-catch",
      "source": "dummy_data_node-catch-ex-001",
      "target": "catch-catch-ex-002",
      "sourceHandle": null,
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-catch-success",
      "source": "catch-catch-ex-002",
      "target": "data_viewer_node-catch-ex-003",
      "sourceHandle": "success",
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    },
    {
      "id": "edge-catch-error",
      "source": "catch-catch-ex-002",
      "target": "data_viewer_node-catch-ex-004",
      "sourceHandle": "error",
      "targetHandle": null,
      "style": { "stroke": "#64748b", "strokeWidth": 2 }
    }
  ],
  "viewport": { "x": 700, "y": 350, "zoom": 0.75 },
  "exportedAt": "2026-03-31T18:00:00.000Z",
  "voodflowVersion": "1.0.0"
}
