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

Allow command parsing to fail without throwing an exception #23

Open
FiniteReality opened this issue Jun 13, 2021 · 0 comments
Open

Allow command parsing to fail without throwing an exception #23

FiniteReality opened this issue Jun 13, 2021 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@FiniteReality
Copy link
Owner

It's likely that in a bot for, say, IRC or Discord, will be listening to all messages, and then attempting to parse them. This means that if a parser throws an exception when a command fails to parse, it will be throwing on every message. Since failing to parse is, in this case, not an exceptional error, I should put some work in to make sure that parsers can communicate failure without throwing an exception.

@FiniteReality FiniteReality added the enhancement New feature or request label Jun 13, 2021
@FiniteReality FiniteReality added this to the 0.3 milestone Jun 13, 2021
@FiniteReality FiniteReality self-assigned this Jun 13, 2021
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