GCC Code Coverage Report


Directory: libimgdoc2/
File: libimgdoc2/src/public/exceptions.cpp
Date: 2025-02-03 12:41:04
Exec Total Coverage
Lines: 0 4 0.0%
Functions: 0 1 0.0%
Branches: 0 6 0.0%

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