8using namespace Qt::Literals::StringLiterals;
10namespace PxCryptPrivate
28 static inline const QHash<Type, QString> ERR_STRINGS{
30 {NotMagic, u
"Image is not a magic image (missing magic number)."_s},
31 {WrongCodec, u
"Image created with a different codec than specified (mismatched rendition)."_s},
32 {DataStreamError, u
"An error occurred while streaming data from/to the canvas."_s},
33 {IntegrityError, u
"A data integrity check failed while reading data."_s}
43 ArtworkError(Type t = NoError,
const QString& d = {});
49 QString details()
const;
53 operator bool()
const {
return isValid(); }