#include <errcode.h>
Definition at line 69 of file errcode.h.
◆ ERRCODE()
ERRCODE::ERRCODE |
( |
const char * |
string | ) |
|
|
inline |
◆ error()
void ERRCODE::error |
( |
const char * |
caller, |
|
|
TessErrorLogCode |
action, |
|
|
const char * |
format, |
|
|
|
... |
|
) |
| const |
Definition at line 37 of file errcode.cpp.
46 if (caller !=
nullptr)
48 msgptr += sprintf (msgptr,
"%s:", caller);
50 msgptr += sprintf (msgptr,
"Error:%s", message);
51 if (format !=
nullptr) {
52 msgptr += sprintf (msgptr,
":");
53 va_start(args, format);
56 msgptr += _vsnprintf (msgptr,
MAX_MSG - 2 - (msgptr - msg), format, args);
61 msgptr += vsprintf (msgptr, format, args);
63 msgptr += sprintf (msgptr,
"\n");
69 msgptr += sprintf (msgptr,
"\n");
72 fprintf(stderr,
"%s", msg);
85 *
reinterpret_cast<int*
>(0) = 0;
const ERRCODE BADERRACTION
void error(const char *caller, TessErrorLogCode action, const char *format,...) const
The documentation for this class was generated from the following files:
- /usr/src/tesseract-ocr.master/src/ccutil/errcode.h
- /usr/src/tesseract-ocr.master/src/ccutil/errcode.cpp