Skip to content

Fix database#execute_batch2 errors #302

@wishdev

Description

@wishdev

I would like to get better errors back from execute_batch2 - currently it simply returns RuntimeError and does not utilize even the basic exceptions from errors.rb

It's simple enough to make that pull request - but it would break anyone currently rescuing on RuntimeError because SQLite3::Exception's is a subclass of StandardError.

Absent a desire to make a breaking change - would changing SQLite3::Exception to be a subclass of RuntimeError be palatable at all? That would break no one because RuntimeError is a subclass of StandardError so anyone rescuing on StandardError would see no change.

Also, while in here would there be any objection to adding the 71 extended errors as specific exceptions? They would all be subclasses of the current exception that is thrown when they occur so this would be a non-breaking change which would add more clarity.

Thanks for considering this......

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions