| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // SPDX-FileCopyrightText: 2023 Carl Zeiss Microscopy GmbH | ||
| 2 | // | ||
| 3 | // SPDX-License-Identifier: MIT | ||
| 4 | |||
| 5 | #include <exceptions.h> | ||
| 6 | #include <sqlite3.h> | ||
| 7 | |||
| 8 | using namespace std; | ||
| 9 | using namespace imgdoc2; | ||
| 10 | |||
| 11 | ✗ | std::string imgdoc2::database_exception::GetSqliteErrorMessage() const | |
| 12 | { | ||
| 13 | ✗ | if (this->GetIsSqliteErrorCodeValid()) | |
| 14 | { | ||
| 15 | ✗ | return { sqlite3_errstr(this->GetSqliteErrorCode()) }; | |
| 16 | } | ||
| 17 | |||
| 18 | ✗ | return { "No Sqlite-Errorcode available." }; | |
| 19 | } | ||
| 20 |