CatalogsDB::DatabaseError

Search for usage in LXR

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 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 681 of file catalogsdb.h.

Member Enumeration Documentation

◆ ErrorType

enum class CatalogsDB::DatabaseError::ErrorType
strong

Definition at line 684 of file catalogsdb.h.

Constructor & Destructor Documentation

◆ DatabaseError()

CatalogsDB::DatabaseError::DatabaseError ( QString message,
ErrorType type = ErrorType::UNKNOWN,
const QSqlError & error = QSqlError() )
inline

Definition at line 696 of file catalogsdb.h.

Member Function Documentation

◆ message()

const QString & CatalogsDB::DatabaseError::message ( ) const
inlinenoexcept

Definition at line 705 of file catalogsdb.h.

◆ type()

ErrorType CatalogsDB::DatabaseError::type ( ) const
inlinenoexcept

Definition at line 706 of file catalogsdb.h.

◆ what()

const char * CatalogsDB::DatabaseError::what ( ) const
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

KDE's Doxygen guidelines are available online.