© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Creating Custom Errors in TypeScript - Effect Community
EC
Effect Community
•
3y ago
•
3 replies
Jonathan | No.Witness Labs
Creating Custom Errors in TypeScript
is there a better way to create custom errors in effect
, rather than using classes like so
?
class
HttpError
{
readonly
_tag
=
"HttpError"
}
class
HttpError
{
readonly
_tag
=
"HttpError"
}
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
Creating Custom Errors with Data.TaggedError in Effect Typescript
EC
Effect Community / 🚀-beginners
14mo ago
When to Use Custom Errors vs. Default Errors in TypeScript
EC
Effect Community / 🚀-beginners
10mo ago
Handling Errors in TypeScript: Returning Custom Exceptions vs. Direct Errors
EC
Effect Community / 🚀-beginners
2y ago
Creating a TypeScript type for errors in an effect
EC
Effect Community / 🚀-beginners
3y ago