Do not instantiate Error before Q_DECLARE_METATYPE
Doing so in Qt5 would cause the template QMetaTypeId<Accounts::Error> class to be instantiated before Q_DECLARE_METATYPE, and consequently cause a compilation error because the Q_DECLARE_METATYPE macro would then re-define the same class.