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

Improve usefulness of error throws #4

Open
Nick-Lucas opened this issue Jun 26, 2016 · 0 comments
Open

Improve usefulness of error throws #4

Nick-Lucas opened this issue Jun 26, 2016 · 0 comments

Comments

@Nick-Lucas
Copy link
Owner

Nick-Lucas commented Jun 26, 2016

For instance:

SQL 'Syntax Error' from the SQL provider:
Bean.FindIterator("Table", "id = {0}", 7)

Should be:
Bean.FindIterator("Table", "WHERE id = {0}", 7)

Behaviour like this isn't always totally clear. We could at least handle syntax errors by throwing a custom LimebeanSyntaxError() exception with the problem SQL query included for analysis. Digging through an assembly's code until you realise you missed a 'WHERE' when you thought the API was doing that isn't super friendly.

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