Skip to content

Improve usefulness of error throws #4

Open
@Nick-Lucas

Description

@Nick-Lucas

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions