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);
}
}