CatalogsDB::DatabaseError
CatalogsDB::DatabaseError Class Reference
#include <catalogsdb.h>
Public Types | |
enum class | ErrorType { OPEN , VERSION , INIT , CREATE_CATALOG , CREATE_MASTER , NOT_FOUND , PREPARE , UNKNOWN } |
Public Member Functions | |
DatabaseError (QString message, ErrorType type=ErrorType::UNKNOWN, const QSqlError &error=QSqlError()) | |
const QString & | message () const noexcept |
ErrorType | type () const noexcept |
const char * | what () const noexcept override |
Detailed Description
Database related error, thrown when database access fails or an action does not succeed.
QSqlError is not used here to encapsulate the database further.
Definition at line 681 of file catalogsdb.h.
Member Enumeration Documentation
◆ ErrorType
|
strong |
Definition at line 684 of file catalogsdb.h.
Constructor & Destructor Documentation
◆ DatabaseError()
|
inline |
Definition at line 696 of file catalogsdb.h.
Member Function Documentation
◆ message()
|
inlinenoexcept |
Definition at line 705 of file catalogsdb.h.
◆ type()
|
inlinenoexcept |
Definition at line 706 of file catalogsdb.h.
◆ what()
|
inlineoverridenoexcept |
Definition at line 704 of file catalogsdb.h.
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:43 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.