Error handling
Exceptions
Section titled “Exceptions”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 prototype's name
will be retained, though the stack trace is not.
Unsupported error types
Section titled “Unsupported error types”- If an
AggregateError
↗ is thrown by an RPC method, it is not propagated back to the caller. - The
SuppressedError
↗ type from the Explicit Resource Management proposal is not currently implemented or supported in Workers. - Own properties of error objects, such as the
cause
↗ property, are not propagated back to the caller
Additional properties
Section titled “Additional properties”For some remote exceptions, the runtime may set properties on the propagated exception to provide more information about the error; see Durable Object error handling for more details.
Was this helpful?
- Resources
- API
- New to Cloudflare?
- Products
- Sponsorships
- Open Source
- Support
- Help Center
- System Status
- Compliance
- GDPR
- Company
- cloudflare.com
- Our team
- Careers
- 2025 Cloudflare, Inc.
- Privacy Policy
- Terms of Use
- Report Security Issues
- Trademark