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

Question: Throw an Error when validating argument paramters. #52

Closed
andrewstillie opened this issue Jan 10, 2024 · 1 comment
Closed

Comments

@andrewstillie
Copy link

I want to range check arguments passed in a command I am implementing. If it is out of range, I want to send an Error response.
Is there a method for throwing an Error Response in a .write function?

@andrewstillie
Copy link
Author

Answered my own question soon after posting.
Set write method to -1 for the error case!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant