You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our Honeycomb query for exception types is a bit disappointing - the most common exception we deal with is AnnotatedException SomeException, seconded by SomeAsyncException. As a result, we don't get a lot of benefit from the exception type.
It'd be good to "dig through" the exception types and collect extra information on them. For example, instead of doing a mere SomeException inner, we can do something like:
case someException ofSomeException inner
|Just (SomeAsyncException inner') <- cast inner
->-- now we can report a more interesting type
But there are a bunch of library defined wrappers, like unliftio's {As,S}yncExceptionWrapper, and AnnotatedException, and I'm sure more that we're not considering. So it may be good to consider a means of providing "unwrappers" that can dig through and add interesting stuff to an exception's type.
The text was updated successfully, but these errors were encountered:
Our Honeycomb query for exception types is a bit disappointing - the most common exception we deal with is
AnnotatedException SomeException
, seconded bySomeAsyncException
. As a result, we don't get a lot of benefit from the exception type.It'd be good to "dig through" the exception types and collect extra information on them. For example, instead of doing a mere
SomeException inner
, we can do something like:But there are a bunch of library defined wrappers, like
unliftio
's{As,S}yncExceptionWrapper
, andAnnotatedException
, and I'm sure more that we're not considering. So it may be good to consider a means of providing "unwrappers" that can dig through and add interesting stuff to an exception's type.The text was updated successfully, but these errors were encountered: