adonisjs / lucid

AdonisJS SQL ORM. Supports PostgreSQL, MySQL, MSSQL, Redshift, SQLite and many more
https://lucid.adonisjs.com/
MIT License
1.02k stars 189 forks source link

feat(errors): use new way to define exceptions #966

Closed RomainLanz closed 8 months ago

RomainLanz commented 8 months ago

Hey there! 👋🏻

This PR uses the new way of defining exceptions that we are using for V6 packages. I also took the opportunity to fix some typos in related files.

I believe we can migrate more exceptions thrown without any code to isolate them to this new system. What do you think?

thetutlage commented 8 months ago

Some tests seems to be impacted by the change