-
-
Couldn't load subscription status.
- Fork 4.2k
Description
I do agree that this could probably handle non-erased error types instead in the "specific-command error handler" case. I spent a bit of time investigating and got this largely working. I added a
type Errorassociated type toHandleErrorandCommandWithEntity, and added anErrorHandler<E>type alias for a generic error handler function. This works for adding error handlers to specific commands, but there is a problem: The "default error handler" fundamentally requires the general-purpose bevyErrortype, making it (not directly) usable for a signature that expects a specific error type. We wantqueueto be "default error conversion compatible" andqueue_handledto require the concrete type. I'm reasonably certain this requires a duplication of traits.This is a big enough change that I think my preference is to defer it to a later PR.
Originally posted by @cart in #17215 (comment)