Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand the error type interfaces for commands to enable coalesced errors from command interfaces #9

Open
rpwachowski opened this issue Oct 20, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@rpwachowski
Copy link
Collaborator

rpwachowski commented Oct 20, 2020

Following a conversation on #8:

...the way Commandant is set up makes it kind of painful where every error needs to be the same type so I avoided doing anything drastic, but I think with enough effort one could make a generic wrapper error and each command could have its own error which coalesces into the generic wrapper automatically, satisfying logical soundness and type constraints.

Each command instance should have its own specialized error type which is transformed into the generic wrapper to satisfy the error type constraint on the actual main running instance.

@rpwachowski rpwachowski added the enhancement New feature or request label Oct 20, 2020
@rpwachowski rpwachowski changed the title Expand the error type interfaces for commands to enable coalesced commands from command interfaces Expand the error type interfaces for commands to enable coalesced errors from command interfaces Oct 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant