0
0
mirror of https://github.com/rbock/sqlpp11.git synced 2024-12-26 07:53:21 +08:00
sqlpp11/docs/Exception-Handling.md

10 lines
469 B
Markdown
Raw Normal View History

## When to expect an exception
sqlpp11 connectors throw the majority of `sqlpp::exception`s so check your connector's documentation. Generally, you should expect an exception when:
- Connecting to a database
- Preparing a statement
- Executing a statement
- Retrieving and iterating through result rows
Additionally, the date library used by sqlpp11 may throw `std::runtime_error`. As of 2017-04-08 this only happens when formatting a date using a format string.