tempestphp / tempest-framework

The PHP framework that gets out of your way 🌊
https://tempestphp.com
MIT License
1.13k stars 80 forks source link

Document standards for exceptions #499

Open aidan-casey opened 1 month ago

aidan-casey commented 1 month ago

We have a few standards going on for exception messages. It would be good to document and enforce our standards.

My rough initial proposal would be:

  1. Take inspiration from Microsoft
  2. Write grammatically correct sentences with punctuation.
  3. Include helpful feedback for what might be wrong.

If we can figure out using CI for this too.......... that'd be amazing. 😍

brendt commented 1 month ago

Agree! We also need to replace all default exceptions to custom ones with proper messages.