Standardizing Error Classes for Consistent toString() Behavior Across Packages
Is there a way you could standardize the error classes from all the packages? Currently,
Sometimes I have to use
ResponseError and ParseError behave very differently when using toString(). For instance, ResponseError returns ResponseError: StatusCode: non 2xx status code, whereas ParseError returns readonly [{ readonly transaction_index.... . The point I'm trying to make is that the ParseError string does not contain the ParseError constructor in the message. Sometimes I have to use
JSON.stringify((cause)) or cause.toString() or String(cause)