mirror of
https://github.com/rbock/sqlpp11.git
synced 2024-12-27 08:31:06 +08:00
10 lines
469 B
Markdown
10 lines
469 B
Markdown
|
## 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.
|