21#include <quentier/utility/Printable.h>
23#include <QSharedDataPointer>
56 [[nodiscard]]
const QString & base()
const noexcept;
57 [[nodiscard]] QString & base();
59 [[nodiscard]]
const QStringList & additionalBases()
const noexcept;
60 [[nodiscard]] QStringList & additionalBases();
62 [[nodiscard]]
const QString & details()
const noexcept;
63 [[nodiscard]] QString & details();
65 void setBase(QString error);
66 void setBase(
const char * error);
68 void appendBase(
const QString & error);
69 void appendBase(
const QStringList & errors);
70 void appendBase(
const char * error);
72 void setDetails(
const QString & error);
73 void setDetails(
const char * error);
75 [[nodiscard]]
bool isEmpty()
const;
78 [[nodiscard]] QString localizedString()
const;
79 [[nodiscard]] QString nonLocalizedString()
const;
81 QTextStream & print(QTextStream & strm)
const override;
84 QSharedDataPointer<ErrorStringData> d;
87[[nodiscard]] QUENTIER_EXPORT
bool operator==(
90[[nodiscard]] QUENTIER_EXPORT
bool operator!=(
The ErrorString class encapsulates two (or more) strings which are meant to contain translatable (bas...
Definition: ErrorString.h:43
The Printable class is the interface for Quentier's internal classes which should be able to write th...
Definition: Printable.h:38