Man page of tw_strerror(3)
Index
NAME
tw_strerror - get a natural language string describing an error
SYNOPSIS
C/C++ #include <tw.h> const char * tw_strerror(tw_errno_t error);
DESCRIPTION
tw_strerror() returns a natural language string describing a tw_errno_t
error code.
PARAMETERS
- error (tw_errno_t)
-
The error number to return a natural language description for.
NOTES
- o
-
The returned pointer must not be freed.
- o
-
All error descriptions are in English.
NAMED ERROR CONSTANTS
Textweiser's tw_errno_t comprises the following named error constants,
which tw_strerror() maps to the assigned descriptions:
- TW_OK (0)
-
"No error"
- TW_ENOMEM (1)
-
"Failed to allocate memory"
- TW_EARG (2)
-
"Invalid argument"
- TW_ESHORT (3)
-
"Insufficient input length"
- TW_EPREPROC (4)
-
"Failed to preprocess text"
- TW_ENOINIT (5)
-
"Object not initialized"
- TW_EIO (6)
-
"File input/output error"
- TW_EFOPEN (7)
-
"Failed to open file"
- TW_ECFG (8)
-
"Failed to parse configuration file"
- TW_ECAT (9)
-
"Invalid category"
- TW_ENOSUTF (10)
-
"Not a supported Unicode Transformation Format"
- TW_ERLOCK (11)
-
"Failed to lock resource"
- TW_ECONSTR (12)
-
"Constraint violated"
- TW_EBFMT (13)
-
"Invalid backup file format"
- TW_EBINV (14)
-
"Invalid backup data"
- TW_EDBPERM (15)
-
"Database permission denied"
- TW_EDBIO (16)
-
"Database input/output error"
- TW_EDBFULL (17)
-
"Database full"
- TW_EDBAUTH (18)
-
"Database authorization failed"
- TW_EDBCON (19)
-
"Failed to connect to database"
- TW_EDB (20)
-
"Internal database error"
- TW_EINT (21)
-
"Internal error"
SEE ALSO
tw_create_db(3), tw_init(3), tw_learn(3), tw_learn_file(3), tw_classify(3), tw_classify_file(3), tw_add_catgeory(3), tw_delete_category(3), tw_rename_category(3), tw_get_categories(3), tw_optimize_db(3)
Textweiser User Manual
http://www.lingua-systems.com/text-classifier/textweiser-library/
COPYRIGHT
Copyright (c) 2010-2011 Lingua-Systems Software GmbH


