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.
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
| File | Contains | Use For |
|---|---|---|
SKILL.md | Entry point: scope, routing table, and workflow. | Start here. |
docs/workers-runtime-apis-rpc-error-handling-workflow-guide.md | Documentation 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
- Open the most relevant file under
docs/for the exact documented workflow and wording. - Open
schemas/files for exact structured contracts. - Open
examples/files for concrete requests, commands, snippets, and manifests. - 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
