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
Currently, my custom uncaught exception logger needs:
onException Nothing e
|Just (ioeGetErrorType -> et) <- fromException e
, et ==ResourceVanished|| et ==InvalidArgument=pure()
in order to avoid logging the invalid argument error that results from the listen socket being closed (to start graceful shutdown). It would be nice to have a custom exception type passed to the uncaught exception handler in this case, as it's an internal implementation detail if there could be other cases of ResourceVanished or InvalidArgument thrown prior to the construction of the Request which we actually do want to log.
The text was updated successfully, but these errors were encountered:
An option (4) that I think would work here: provide predicate functions that test for the common cases people care about, e.g. isListenSocketClosedException :: SomeException -> Bool
Currently, my custom uncaught exception logger needs:
in order to avoid logging the
invalid argument
error that results from the listen socket being closed (to start graceful shutdown). It would be nice to have a custom exception type passed to the uncaught exception handler in this case, as it's an internal implementation detail if there could be other cases ofResourceVanished
orInvalidArgument
thrown prior to the construction of theRequest
which we actually do want to log.The text was updated successfully, but these errors were encountered: