© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Handling Specific Errors in RPC with Effect Typescript - Effect Community
EC
Effect Community
•
10mo ago
Afonso Matos
Handling Specific Errors in RPC with Effect Typescript
So my RPC can throw a bunch of errors
, out of which I want to ignore all of them for now except
MyPreferredError
MyPreferredError
To type the RPC error type
, I tried
Schema.Union(Schema.Unknown, MyPreferredError)
Schema.Union(Schema.Unknown, MyPreferredError)
, but that doesn
't work ofc because the unknown eats up everything
. So how can i do this
?
Effect Community
Join
Production-grade applications in TypeScript.
6,221
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Handling Specific Error Cases in Effect Typescript
EC
Effect Community / schema
17mo ago
Handling Schema Errors with Discriminated Unions in Effect Typescript
EC
Effect Community / schema
10mo ago
Handling Specific Errors with Schema
EC
Effect Community / schema
3y ago
Handling Optional Nested Struct Validation Errors in Effect Typescript
EC
Effect Community / schema
9mo ago