frc5183 / Oatmeal

MIT License
2 stars 0 forks source link

Error Handling #14

Open Baconing opened 10 months ago

Baconing commented 10 months ago

A proper, unified system to handle all exceptions and errors (apart from fatal errors).

Some errors (e.g. SQL) will throw a RuntimeException when caught, taking the whole bot down with it, we should instead just notify the user of the error or try again (with limit), allowing the bot to continue execution without relying on automatic restarts or administrator intervention.

If we start to detect abnormalities with errors (e.g. above normal numbers, same types, same user), we can also send a mass DM to all bot administrators.