21#include <quentier/exception/IQuentierException.h>
22#include <quentier/types/ErrorString.h>
24#include <quentier/utility/Fwd.h>
25#include <quentier/utility/Linkage.h>
31namespace quentier::utility {
81 friend QUENTIER_EXPORT QTextStream & operator<<(
82 QTextStream & strm, ErrorCode errorCode);
84 friend QUENTIER_EXPORT QDebug & operator<<(
85 QDebug & dbg, ErrorCode errorCode);
91 class QUENTIER_EXPORT Exception :
public IQuentierException
94 explicit Exception(
ErrorCode errorCode)
noexcept;
99 [[nodiscard]]
ErrorCode errorCode()
const noexcept;
100 [[nodiscard]] QString exceptionDisplayName()
const override;
102 void raise()
const override;
103 [[nodiscard]] Exception * clone()
const override;
124 QString service, QString key, QString password) = 0;
140 QString service, QString key)
const = 0;
155 QString service, QString key) = 0;
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition ErrorString.h:43
The IKeychainService interface provides the ability to interact with the storage of sensitive data - ...
Definition IKeychainService.h:38
virtual QFuture< void > deletePassword(QString service, QString key)=0
ErrorCode
Definition IKeychainService.h:46
@ AccessDeniedByUser
Definition IKeychainService.h:62
@ OtherError
Definition IKeychainService.h:78
@ NoError
Definition IKeychainService.h:50
@ EntryNotFound
Definition IKeychainService.h:54
@ NotImplemented
Definition IKeychainService.h:74
@ AccessDenied
Definition IKeychainService.h:66
@ CouldNotDeleteEntry
Definition IKeychainService.h:58
@ NoBackendAvailable
Definition IKeychainService.h:70
virtual QFuture< void > writePassword(QString service, QString key, QString password)=0
virtual QFuture< QString > readPassword(QString service, QString key) const =0