82 bool FatalE(
const char *Function,
const char *Description,...) APT_PRINTF(3) APT_COLD;
91 bool Errno(const
char *Function,const
char *Description,...) APT_PRINTF(3) APT_COLD;
103 bool WarningE(const
char *Function,const
char *Description,...) APT_PRINTF(3) APT_COLD;
112 bool NoticeE(const
char *Function,const
char *Description,...) APT_PRINTF(3) APT_COLD;
121 bool AuditE(const
char *Function,const
char *Description,...) APT_PRINTF(3) APT_COLD;
130 bool DebugE(const
char *Function,const
char *Description,...) APT_PRINTF(3) APT_COLD;
138 bool InsertErrno(
MsgType const &type, const
char* Function,
139 const
char* Description,...) APT_PRINTF(4) APT_COLD;
156 bool InsertErrno(
MsgType type, const
char* Function,
157 const
char* Description, va_list &args,
158 int const errsv,
size_t &msgSize) APT_COLD;
173 bool Fatal(const
char *Description,...) APT_PRINTF(2) APT_COLD;
181 bool Error(const
char *Description,...) APT_PRINTF(2) APT_COLD;
192 bool Warning(const
char *Description,...) APT_PRINTF(2) APT_COLD;
205 bool Notice(const
char *Description,...) APT_PRINTF(2) APT_COLD;
217 bool Audit(const
char *Description,...) APT_PRINTF(2) APT_COLD;
225 bool Debug(const
char *Description,...) APT_PRINTF(2) APT_COLD;
232 bool Insert(
MsgType const &type, const
char* Description,...) APT_PRINTF(3) APT_COLD;
247 bool Insert(
MsgType type, const
char* Description,
248 va_list &args,
size_t &msgSize) APT_COLD;
254 inline
bool PendingError() const APT_PURE {
return PendingFlag;};
266 bool empty(MsgType
const &threshold = WARNING)
const APT_PURE;
274 bool PopMessage(std::string &Text);
287 void DumpErrors(std::ostream &out, MsgType
const &threshold = WARNING,
288 bool const &mergeStack =
true);
298 DumpErrors(std::cerr, threshold);
325 void RevertToStack();
328 void MergeWithStack();
332 return Stacks.size();
342 Item(
char const *Text, MsgType
const &Type) :
343 Text(Text), Type(Type) {};
345 APT_HIDDEN
friend std::ostream &operator<<(std::ostream &out, Item i);
348 APT_HIDDEN
friend std::ostream &operator<<(std::ostream &out, Item i);
350 std::list<Item> Messages;
354 std::list<Item> Messages;
355 bool const PendingFlag;
357 MsgStack(std::list<Item>
const &Messages,
bool const &Pending) :
358 Messages(Messages), PendingFlag(Pending) {};
361 std::list<MsgStack> Stacks;
bool FatalE(const char *Function, const char *Description,...) APT_PRINTF(3) APT_COLD
add a fatal error message with errno to the list