ichnion / excavator

Extracts and stores your personal data exports.
https://ichnion.github.io/website/
GNU General Public License v3.0
1 stars 1 forks source link

Handle SQL Insert Exceptions #13

Closed mbasa-georepublic closed 3 years ago

mbasa-georepublic commented 3 years ago

In other languages there is a try..catch..finally to handle exceptions and continue on with the process. Is there an equivalent in Rust so that SQL exceptions can be caught without the application stopping.

chansuke commented 3 years ago

@mbasa-georepublic Thank you for your comment and sorry for the late reply. Result<T, E> handles exceptions in other languages and I'd like to work on this. https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html