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

Define one or more exceptions that algorithms can throw in operator() and flush() #12

Open
philiprodrigues opened this issue May 28, 2021 · 1 comment

Comments

@philiprodrigues
Copy link
Contributor

We should define some exceptions (or maybe just one) that algorithms can throw if they cannot continue. This will give some debugging information to the caller of operator() or flush(), if nothing else.

@philiprodrigues
Copy link
Contributor Author

philiprodrigues commented May 28, 2021

I guess the simplest option is something like:

class triggeralgs::algorithm_error : public std::runtime_error
{
   algorithm_error(const std::string& what);
}

Are there other classes of error we might want to model with different exceptions? I haven't thought of any yet

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