artemis-odb icon indicating copy to clipboard operation
artemis-odb copied to clipboard

[Question] Systematic Error Handling ?

Open bryanbrunt opened this issue 2 years ago • 0 comments

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.

bryanbrunt avatar Jan 11 '22 23:01 bryanbrunt