Effect CommunityEC
Effect Communityβ€’3y agoβ€’
8 replies
Joshua

Limitations of catchTag in extending Error class

seems catchTag doesn't support extending other classes like Error. e.g
class JsonParseError extends Error {
  readonly _tag = "JsonParseError";
  constructor(readonly response: Response, message?: string) {
    super(message);
  }
}
Was this page helpful?