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

Clarify note for using exceptions in QueryBuilder docs #1407

Open
sypets opened this issue Jun 12, 2021 · 0 comments
Open

Clarify note for using exceptions in QueryBuilder docs #1407

sypets opened this issue Jun 12, 2021 · 0 comments

Comments

@sypets
Copy link
Contributor

sypets commented Jun 12, 2021

The exception type is a \Doctrine\DBAL\DBALException which can be caught and transferred to a better error message if the application has to expect query errors. Note this is not good habit and often indicates an architectural flaw of the application at a different layer.

https://docs.typo3.org/m/typo3/reference-coreapi/master/en-us/ApiOverview/Database/TipsAndTricks/Index.html

If someone knows this and knows what is better practices, they probably do not need this note. If someone does not, it might be helpful to write what would be a better practice and possibly link to more information.

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

No branches or pull requests

1 participant