9#ifndef SQUID_SRC_ERROR_ERROR_H
10#define SQUID_SRC_ERROR_ERROR_H
20using ErrorDetails = std::vector<ErrorDetailPointer, PoolingAllocator<ErrorDetailPointer> >;
69 for (
int i = 0; i <
ERR_MAX; ++i)
79 if (err < ERR_NONE || err >=
ERR_MAX)
std::ostream & operator<<(std::ostream &, const ErrorDetails &)
std::vector< ErrorDetailPointer, PoolingAllocator< ErrorDetailPointer > > ErrorDetails
zero or more details of a single error
err_type errorTypeByName(const char *name)
const char * errorTypeName(err_type err)
const char * err_type_str[]
void error(char *format,...)
err_type category
primary error classification (or ERR_NONE)
Error(const err_type c)
support implicit conversions
Error(const err_type c, const ErrorDetailPointer &d)
void update(const Error &)
if necessary, stores the given error information (if any)
void clear()
switch to the default "no error information" state