CatalogsDB::DatabaseError

Search for usage in LXR

CatalogsDB::DatabaseError Class Reference

#include <catalogsdb.h>

Inherits exception.

Public Types

enum  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 QStringmessage () 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 679 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-2022 The KDE developers.
Generated on Fri Aug 12 2022 04:01:02 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.