Prompt Buddy logoPrompt Buddy

cloudflare · Cloudflare Workers Docs

Workers Error handling

Explains how exceptions propagate through the Workers RPC system, including how standard JavaScript Error types behave and which specific error types or properties are not supported during propagation.

Import to Prompt Buddy

Derived skill

Files assembled from official documentation

Viewing SKILL.md

Workers Error handling

Explains how exceptions propagate through the Workers RPC system, including how standard JavaScript Error types behave and which specific error types or properties are not supported during propagation.

When To Use

Use when implementing error handling logic for RPC method calls to ensure exceptions and stack traces are correctly managed or to avoid unsupported error types like AggregateError.

Reference Files

FileContainsUse For
SKILL.mdEntry point: scope, routing table, and workflow.Start here.
docs/workers-runtime-apis-rpc-error-handling-workflow-guide.mdDocumentation explaining how exceptions propagate from RPC method implementations to callers within Cloudflare Workers.Questions about documentation explaining how exceptions propagate from RPC method implementations to callers within Cloudflare Workers.

What This Skill Covers

  • An exception thrown by an RPC method implementation will propagate to the caller. If it is one of the standard JavaScript Error types, the message and protot...
  • Main sections: Exceptions, Unsupported error types, Additional properties.

Workflow

  1. Open the most relevant file under docs/ for the exact documented workflow and wording.
  2. Open schemas/ files for exact structured contracts.
  3. Open examples/ files for concrete requests, commands, snippets, and manifests.
  4. Do not add behavior or configuration that is not present in the attached source files.

Canonical source: https://developers.cloudflare.com/workers/runtime-apis/rpc/error-handling