aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/sqlite/sqliteexception.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Sqlite: Print error message in ConstraintPreventsModification::what()Marco Bubke2025-06-181-1/+5
| | | | | Change-Id: Iffec725e59800bcb0b47bdf3268837c4f69c7eaa Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Sqlite: Fix exception messageMarco Bubke2025-06-121-7/+11
| | | | | | | Utils::SmallString is not anymore null terminated. Change-Id: I685af8df662d7d8ae2d9c773b381a0a63789f6b4 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* QmlDesigner: Use Sqlite source location wrapperMarco Bubke2025-01-221-87/+87
| | | | | | Task-number: QDS-14575 Change-Id: I217d22da3bcf8a611dfa9b521495b5f6b646ef15 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Sqlite: Add location to exceptionMarco Bubke2025-01-221-4/+6
| | | | | | | | So we can printout the caller site. Fixes: QDS-14540 Change-Id: Id0999f1e0bf5426b32aa69b07252d95529f22b65 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* NanoTrace: Remove user literal workaroundMarco Bubke2024-10-251-2/+2
| | | | | | | | Since C++ 20 consteval we can enforce compile time evaluation. So the workaround is not anymore needed. Change-Id: Icfe254431e2d1c364846107474bab911efbf5641 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
* Sqlite: trace exceptionsMarco Bubke2024-03-201-2/+28
| | | | | | | | | That makes it easier to see what got wrong in the trace. So less debugging. Change-Id: I26ec3d6a6f81cbd20871260a2b32123343a20618 Reviewed-by: Qt CI Patch Build Bot <ci_patchbuild_bot@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Merge remote-tracking branch 'origin/10.0' into qds/devTim Jenßen2023-03-261-1/+1
|\ | | | | | | | | | | | | | | bigger conflicts resolved at: src/plugins/qmldesigner/CMakeLists.txt src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp Change-Id: I08e2a109d8e37cbd77225129854e9e633725bfc7
| * Remove GPL-3.0+ from license identifiersKai Köhne2023-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since we also license under GPL-3.0 WITH Qt-GPL-exception-1.0, this applies only to a hypothetical newer version of GPL, that doesn't exist yet. If such a version emerges, we can still decide to relicense... While at it, replace (deprecated) GPL-3.0 with more explicit GPL-3.0-only Change was done by running find . -type f -exec perl -pi -e "s/LicenseRef-Qt-Commercial OR GPL-3.0\+ OR GPL-3.0 WITH Qt-GPL-exception-1.0/LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0/g" {} \; Change-Id: I5097e6ce8d10233993ee30d7e25120e2659eb10b Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* | Sqlite: Generalize error handlingMarco Bubke2023-03-151-0/+183
| | | | | | | | | | | | | | | | | | Instead of having multiple error handling function just have one which handles all error codes. Change-Id: I6fc0484a335dcf582fc93159a9fdb0fea440daca Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for can't open errorsMarco Bubke2023-03-151-0/+30
| | | | | | | | | | | | Change-Id: Ib092b5fe721b8b063f8c503cc1a650447e393951 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for connection lock errorsMarco Bubke2023-03-151-0/+10
| | | | | | | | | | | | Change-Id: If6f6cd6ba67edc8716f3c43b832642244fc1e1c3 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for readonly errorsMarco Bubke2023-03-151-0/+30
| | | | | | | | | | | | Change-Id: I96a8f1c87ce116e99b7e6333166299b39fb9c27c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for corruption errorsMarco Bubke2023-03-151-0/+15
| | | | | | | | | | | | Change-Id: I705bffc54def12e914caf31cacf870ad2f9cbeea Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for contraint errorsMarco Bubke2023-03-151-0/+60
| | | | | | | | | | | | Change-Id: I2e3030de7496703ba1e9fbd1a28ed55061e1b2b5 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Sqlite: Add extended exceptions for errorsMarco Bubke2023-03-151-0/+15
| | | | | | | | | | | | Change-Id: I297bf7a82625198200b0e4ed260d81358d31c56c Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for busy errorsMarco Bubke2023-03-151-0/+30
| | | | | | | | | | | | Change-Id: I812650401f4a5d5a099abc0183d2f7ed4e1d64c6 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Sqlite: Add extended exceptions for IO errorsMarco Bubke2023-03-151-0/+165
| | | | | | | | | | | | Change-Id: I3862a91e3d9989c44c7c62171324c38b66a67ac0 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* | Sqlite: Inject RTTI into TUMarco Bubke2023-02-281-1/+281
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We had problems on macOS with the catching of exceptions because the has type_info::hash_code was different. This is probably a bug because RTTI code is injected for an inline class. To work around that problem we implemented the virtual what method for every exception. Task-number: QDS-9266 Change-Id: I79052c8b70adead412d1940b17195151fb19ebb9 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* | Sqlite: Move virtual methode into .cppMarco Bubke2023-02-281-0/+5
|/ | | | | | | | | Task-number: QDS-9266 Change-Id: Ic1083e088ef27d7c47fa3ae142a103dbcad10a5b Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Vikas Pachdha <vikas.pachdha@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Sqlite: Cleanup exceptionsMarco Bubke2021-12-091-5/+2
| | | | | | | | | | There are now two base exceptions. Exception and ExceptionWithMessage. We very often don't use the extra message. So don't pay for what you don't use. Otherwise it is replacing code with using statements. Change-Id: I213cf1f02718f6d3b2aa0e2a64626c9fc5c7c917 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Sqlite: Remove the Sqlite PrefixMarco Bubke2017-09-181-1/+1
| | | | | | | We use a name space now, so the prefix is not of much use. Change-Id: I2b077576f94dab778add6ab2e54870f7ca18da78 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Sqlite: Cleanup exceptionsMarco Bubke2017-07-271-6/+2
| | | | | Change-Id: Id5ac7e6aba407eb5a3164bba57bff043e809beef Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Sqlite: Cleanup SqliteMarco Bubke2017-07-271-5/+8
| | | | | | | | | We don't need the threading anymore, so we removed it. The indexer will be run in its thread anyway, so an extra thread makes the code only more complicated. And we added namespaces. Change-Id: Ibcba306324763285cf653c28bb08122345e5f8da Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Clang: Reorder includesMarco Bubke2015-06-161-1/+1
| | | | | Change-Id: I324e88c0d295114390c1fac2745c0d2d47637ece Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Introduce codemodelbackend process and libraryMarco Bubke2015-06-031-0/+48
This is a partial result of wip/clang-oop. More will follow. This allows us to invoke the completion out of the Qt Creator process and thus safes us as against libclang crashes. At this point only the completion use case is supported. Some notes on the individual components: src/libs/codemodelbackendipc * library encapsulating the inter process communication handling * used by the backend application and in a follow-up change by the creator integration src/libs/3rdparty/sqlite * version 3.8.10.2 * dependency of codemodelbackendipc, will be used to storage indexing data, among others src/tools/codemodelbackend * the backend application tests/unit: * unit tests Change-Id: I91a48e27467581a22fb760a18d8eb926008fea60 Reviewed-by: Alessandro Portale <alessandro.portale@theqtcompany.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>