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] Systematic Error Handling ? #651

Open
bryanbrunt opened this issue Jan 11, 2022 · 0 comments
Open

[Question] Systematic Error Handling ? #651

bryanbrunt opened this issue Jan 11, 2022 · 0 comments
Labels

Comments

@bryanbrunt
Copy link

What approaches does everyone use for handling errors?

Do you simply wrap the code in each system's process functions to catch exceptions?

protected void process(int e) {
try {
return lang.get(resource);
} catch (Exception ex) {
ex.printStackTrace();
return null;
}
}

As a potential feature request: what if you could define some type of Error Handling System for each world?

All of the ECS examples that I'm seeing basically have no comprehensive error handling. You can't exactly ship code without a way to log and handle potential errors.

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

No branches or pull requests

1 participant