UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ErrCodes.h
1 /* $Id: ErrCodes.h,v 1.46 2008/12/15 13:54:13 ibadm Exp $ */
2 
3 /*********************************************************************
4  *
5  * UNIVERS
6  * (C) ООО "ГЕОВЕРС", 2001
7  *
8  * Все права защищены * * Использование, копирование или передача регулируются законами * Российской Федерации "Об авторском праве и смежных правах", "О * правовой охране программ для электронных вычислительных машин и баз * данных" * * Encoding: ISO-8859-5 (GOST) * *********************************************************************/ /******************************************************************************* DESCRIPTION: This include file contain some error codes used in Error System Handler facility. *******************************************************************************/ #ifndef _ERROR_H #define _ERROR_H #include <mix/Types.h> /* range from 0 to 99 is reserved */ #define OK 0 #define ERROR__FIRST 1 /* error codes for I/O operation is between 100 and 199 */ #define ERROR__IO 100 #define ERROR__OPEN_FILE (ERROR__IO+1) #define ERROR__CLOSE_FILE (ERROR__IO+2) #define ERROR__IO_ERROR (ERROR__IO+3) #define ERROR__IO_DUP (ERROR__IO+4) #define ERROR__STREAM (ERROR__IO+5) #define ERROR__BAD_PATH (ERROR__IO+6) #define ERROR__BAD_FD (ERROR__IO+7) #define ERROR__RO_FILE_NEEDED (ERROR__IO+8) #define ERROR__NON_REGULAR_FILE (ERROR__IO+9) #define ERROR__ZERO_FILE_SIZE (ERROR__IO+10) #define ERROR__READ (ERROR__IO+11) #define ERROR__WRITE (ERROR__IO+12) #define ERROR__SEEK (ERROR__IO+13) #define ERROR__MTAB_OPEN (ERROR__IO+14) #define ERROR__MTAB_READING (ERROR__IO+15) #define ERROR__MTAB_ALLOC (ERROR__IO+16) #define ERROR__MTAB_WRITING (ERROR__IO+17) #define ERROR__BAD_FILDES (ERROR__IO+18) #define ERROR__IO_STAT (ERROR__IO+19) #define ERROR__FILE_BOUNDS (ERROR__IO+20) #define ERROR__EOF (ERROR__IO+21) #define ERROR__NO_DISK_SPACE (ERROR__IO+22) #define ERROR__TRUNCATE (ERROR__IO+23) #define ERROR__BAD_PARAMS (ERROR__IO+24) #define ERROR__UNLINK (ERROR__IO+25) /* Strange error that would not be expected but had occured */ #define ERROR__CONFUSION (ERROR__IO+26) #define ERROR__READONLY_MODE (ERROR__IO+27) /* Error of access to locked sharable object */ #define ERROR__SHARED_REFUSED (ERROR__IO+28) /* Error due to bad or incomplete process environment */ #define ERROR__BAD_ENV (ERROR__IO+29) /* If something (usually file) is not found */ #define ERROR__NOT_FOUND (ERROR__IO+30) /* For announced, but not implemented features */ #define ERROR__N_A (ERROR__IO+31) /* Can't rename a file (or other object) */ #define ERROR__RENAME (ERROR__IO+32) /* Can't create something due to it exists */ #define ERROR__ALREADY_EXISTS (ERROR__IO+33) /* Problems while parsing some text file */ #define ERROR__TEXT_PARSING (ERROR__IO+34) /* popen call failed */ #define ERROR__POPEN (ERROR__IO+35) /* some operation over Int8 data on not-64-compatible platform */ #define ERROR__INT8_USAGE (ERROR__IO+36) /* unexpected character */ #define ERROR__BAD_CHAR (ERROR__IO+37) /* too long object (name, string, file etc) */ #define ERROR__TOO_LONG (ERROR__IO+38) /* bad syntax for expected value (text or string parsing) */ #define ERROR__BAD_SYNTAX (ERROR__IO+39) /* illegal operation (reading of WRONLY object or writing of RDONLY one) */ #define ERROR__ILLEGAL_OPER (ERROR__IO+40) /* error returned by mutex APIs */ #define ERROR__MUTEX (ERROR__IO+41) /* error codes for Memory function range 200 to 299 */ #define ERROR__MEM 200 /* Can not allocate memory successfully */ #define ERROR__ALLOC (ERROR__MEM+1) /* Can not free memory successfully */ #define ERROR__FREE (ERROR__MEM+2) /* Bad pointer's value */ #define ERROR__NULL (ERROR__MEM+3) /* Index is out of range */ #define ERROR__ARRAY_BOUNDS (ERROR__MEM+4) /* Some parameter (not pointer) has bad value */ #define ERROR__MISMATCH (ERROR__MEM+5) /* An object is not build properly and some fields need initialization */ #define ERROR__NO_INIT (ERROR__MEM+6) /* Usually string with first char == '\0' */ #define ERROR__EMPTY (ERROR__MEM+7) /* mmap() call is not success */ #define ERROR__MMAP_FAILED (ERROR__MEM+8) /* Data are present but they are too short; not enough data */ #define ERROR__SHORT_DATA (ERROR__MEM+9) /* Some data does not have an expected format */ #define ERROR__BAD_FORMAT (ERROR__MEM+10) /* Some data container can't be extented by new item(s) for some reason. */ #define ERROR__CANT_EXTEND (ERROR__MEM+11) /* error codes for Math range 300 to 399 */ #define ERROR__MATH 300 /* Input numeric parameter has not proper value */ #define ERROR__BOUNDS (ERROR__MATH+1) /* Numeric parameter can't be negative */ #define ERROR__NEGATIVE_NUMBER (ERROR__MATH+2) /* Numeric parameter must be greater than zero */ #define ERROR__NON_POSITIVE_NUMBER (ERROR__MATH+3) /* special error codes for FAT (File Access Tools) range 400 to 499 */ #define ERROR__FAT 400 #define ERROR__BAD_BLOCK_PARAMS (ERROR__FAT+1) #define ERROR__BAD_PATCH_PARAMS (ERROR__FAT+2) #define ERROR__ZERO_COUNT (ERROR__FAT+3) #define ERROR__OUT_OF_RANGE (ERROR__FAT+4) #define ERROR__NON_NATURAL_BLOCKS_COUNT (ERROR__FAT+5) #define ERROR__BAD_MOD_NAME (ERROR__FAT+6) #define ERROR__AUTODETECT_DISABLED (ERROR__FAT+7) /* error codes for X-Window operations range 500 to 599 */ #define ERROR__X 500 /*-----------------------------------------------------------* * Equivalence of X errors * So, (XErrorCode+ERROR__X) will be one of the next error * see also XGEnv::x_error() in `mix1/xgb/XGEnv.H' *-----------------------------------------------------------*/ /* bad request code */ #define ERROR__X_BAD_REQUEST (ERROR__X+1) /* int parameter out of range */ #define ERROR__X_BAD_VALUE (ERROR__X+2) /* parameter not a Window */ #define ERROR__X_BAD_WINDOW (ERROR__X+3) /* parameter not a Pixmap */ #define ERROR__X_BAD_PIXMAP (ERROR__X+4) /* parameter not an Atom */ #define ERROR__X_BAD_ATOM (ERROR__X+5) /* parameter not a Cursor */ #define ERROR__X_BAD_CURSOR (ERROR__X+6) /* parameter not a Font */ #define ERROR__X_BAD_FONT (ERROR__X+7) /* parameter mismatch */ #define ERROR__X_BAD_MATCH (ERROR__X+8) /* parameter not a Pixmap or Window */ #define ERROR__X_BAD_DRAWABLE (ERROR__X+9) /* depending on context: - key/button already grabbed - attempt to free an illegal cmap entry - attempt to store into a read-only color map entry. - attempt to modify the access control list from other than the local host. */ #define ERROR__X_BAD_ACCESS (ERROR__X+10) /* insufficient resources */ #define ERROR__X_BAD_ALLOC (ERROR__X+11) /* no such colormap */ #define ERROR__X_BAD_COLOR (ERROR__X+12) /* parameter not a GC */ #define ERROR__X_BAD_GC (ERROR__X+13) /* choice not in range or already used */ #define ERROR__X_BAD_IDCHOICE (ERROR__X+14) /* font or color name doesn't exist */ #define ERROR__X_BAD_NAME (ERROR__X+15) /* Request length incorrect */ #define ERROR__X_BAD_LENGTH (ERROR__X+16) /* server is defective */ #define ERROR__X_BAD_IMPLEMENTATION (ERROR__X+17) #define ERROR__X_GET_GC_VALUES (ERROR__X+18) #define ERROR__X_BAD_FONT_NAME (ERROR__X+19) #define ERROR__X_NO_SUCH_FONT (ERROR__X+20) #define ERROR__X_BAD_PALETTE (ERROR__X+21) #define ERROR__X_ZERO_SIZE (ERROR__X+22) #define ERROR__X_BAD_DISPLAY (ERROR__X+23) /* error codes for RadioGroup operations range 600 to 649 */ #define ERROR__RG 600 #define ERROR__RG_BAD_INDEX (ERROR__RG+1) #define ERROR__RG_BAD_PARAMETERS (ERROR__RG+2) #define ERROR__RG_BAD_MEMBER_PTR (ERROR__RG+3) #define ERROR__RG_BAD_ALLOC (ERROR__RG+4) #define ERROR__RG_NO_STATES (ERROR__RG+5) /* error codes for DynAr class range 650 to 699 */ #define ERROR__DA 650 #define ERROR__DA_UNEXTENDABLE_EMPTY (ERROR__DA+1) #define ERROR__DA_ZERO_UNIT (ERROR__DA+2) #define ERROR__DA_OWERFLOW (ERROR__DA+3) #define ERROR__DA_EMPTY_ARRAY (ERROR__DA+4) #define ERROR__DA_OUT_OF_RANGE (ERROR__DA+5) #define ERROR__DA_SIZE_MISMATCH (ERROR__DA+6) #define ERROR__DA_BAD_VALUE (ERROR__DA+7) #define ERROR__DA_BAD_ALLOC (ERROR__DA+8) #define ERROR__DA_UNKNOWN_KEY (ERROR__DA+9) #define ERROR__DA_KNOWN_KEY (ERROR__DA+10) /* error codes for DataBase library range 700 to 749 */ #define ERROR__DB 700 #define ERROR__DB_TYPE_MATCH (ERROR__DB+1) #define ERROR__DB_BAD_MODE (ERROR__DB+2) #define ERROR__DB_NO_DTBSPTR (ERROR__DB+3) #define ERROR__DB_BOUNDS (ERROR__DB+4) #define ERROR__DB_TYPE_CONVERTION (ERROR__DB+5) #define ERROR__DB_BAD_FILENAME (ERROR__DB+6) #define ERROR__DB_DMN_NOT_FOUND (ERROR__DB+7) #define ERROR__DB_BAD_MAGIC (ERROR__DB+8) #define ERROR__DB_FMT_MISMATCH (ERROR__DB+9) #define ERROR__DB_TT_NOT_FOUND (ERROR__DB+10) #define ERROR__DB_DIM_MISMATCH (ERROR__DB+11) /* Sharing violation due to existant r/o locks */ #define ERROR__DB_RO_LOCKED (ERROR__DB+12) /* Sharing violation due to existant r/w locks */ #define ERROR__DB_RW_LOCKED (ERROR__DB+13) /* Line is not found as loaded, but it have to be */ #define ERROR__DB_LINE_NOT_LOADED (ERROR__DB+14) /* Trying to fetch empty or absent data item from data cluster */ #define ERROR__DB_BAD_SLOT_FETCH (ERROR__DB+15) /* Item is not found - either trying to read from -1, or there are not so many lines in the db_table */ #define ERROR__DB_BAD_ITEM (ERROR__DB+16) /* Db table is not modifiable */ #define ERROR__DB_PROTECTED (ERROR__DB+17) /* Db lock was lost sometimes ago */ #define ERROR__DB_LOST_LOCK (ERROR__DB+18) /* error codes for Trace related operations range 750 to 799 */ #define ERROR__TRACE 750 #define ERROR__LOCKED_TRACE (ERROR__TRACE+1) #define ERROR__BAD_TAID (ERROR__TRACE+2) #define ERROR__TAID_PROHIBITED (ERROR__TRACE+3) #define ERROR__BAD_TRACE_FORMAT (ERROR__TRACE+4) #define ERROR__SHORT_HEADER (ERROR__TRACE+5) #define ERROR__TAID_TYPE (ERROR__TRACE+6) #define ERROR__ONLY_REAL4 (ERROR__TRACE+7) /* error codes for Z* library range 800 to 849 */ #define ERROR__Z 800 /* No Equivalent Class with such id */ #define ERROR__Z_BAD_ECID (ERROR__Z+1) /* Internal realization bug */ #define ERROR__Z_NULL_MEMBER (ERROR__Z+2) /* Negative coordinate (not implemented yet) */ #define ERROR__Z_BAD_COORD (ERROR__Z+3) /* Empty Equivalent Class */ #define ERROR__Z_NO_MEMBERS (ERROR__Z+4) /* No object with such index */ #define ERROR__Z_BAD_INDEX (ERROR__Z+5) /* 1) More than one object has unique property 2) Scale can not be displayed in two different dimensions */ #define ERROR__Z_UNCERTAIN (ERROR__Z+6) /* Zero range of units or coordinates (bounds, traces) */ #define ERROR__Z_ZERO_RANGE (ERROR__Z+7) /* Bad value in numeric argument */ #define ERROR__Z_BAD_VALUE (ERROR__Z+8) /* This group does not have linked one */ #define ERROR__Z_NOT_LINKED (ERROR__Z+9) /* Trying to link group to itself */ #define ERROR__Z_LINK_TO_ITSELF (ERROR__Z+10) /* Object does not have natural slave of pointed dimension */ #define ERROR__Z_NO_DIMENSION (ERROR__Z+11) /* There is not palette with pointed name */ #define ERROR__Z_NO_PALETTE (ERROR__Z+12) /* There are not colors in palette */ #define ERROR__Z_EMPTY_PALETTE (ERROR__Z+13) /* Index of color is out of palette range */ #define ERROR__Z_BAD_COLOR_INDEX (ERROR__Z+14) /* Can not get image by XGetImage */ #define ERROR__Z_BAD_GET_IMAGE (ERROR__Z+15) /* error codes for trace mapping modules range 850 to 899 */ #define ERROR__TM 850 /* Index of trace is out of range */ #define ERROR__TM_OUT_OF_RANGE (ERROR__TM+1) /* Size of file is not equal to integer count of traces */ #define ERROR__TM_ODD_SIZE (ERROR__TM+2) /* Needed access to trace map is denied */ #define ERROR__TM_ACCESS_DENIED (ERROR__TM+3) /* Bad format of trace file */ #define ERROR__TM_BAD_TRACE_FILE (ERROR__TM+4) /* error codes for PEP module range 900 to 949 */ #define ERROR__PEP 900 #define ERROR__PEP_UNKNOWN_TYPE (ERROR__PEP+1) #define ERROR__PEP_UNKNOWN_PARAM (ERROR__PEP+2) #define ERROR__PEP_TYPE_MISMATCH (ERROR__PEP+3) #define ERROR__PEP_VOID_CONNECTION (ERROR__PEP+4) /* Can not find [connection protocol] pair */ #define ERROR__PEP_NOT_FOUND (ERROR__PEP+5) /* Can not get unique key for IPC */ #define ERROR__PEP_IPC_KEY (ERROR__PEP+6) /* Can not get IPC handle (semaphores, shared memory or messages) */ #define ERROR__PEP_IPC_GET (ERROR__PEP+7) /* Can not lock/unlock semaphore */ #define ERROR__PEP_SEM_LOCK (ERROR__PEP+8) /* Something in handle is bad */ #define ERROR__PEP_DAMAGED (ERROR__PEP+9) /* Can not attach shared memory page */ #define ERROR__PEP_IPC_ATTACH (ERROR__PEP+10) /* Trying to access element out of allowed range */ #define ERROR__PEP_OUT_OF_RANGE (ERROR__PEP+11) /* Trying to use property of shared object by local one */ #define ERROR__PEP_NOT_IPC (ERROR__PEP+12) /* Unsuccessful stat of an IPC service */ #define ERROR__PEP_IPC_STAT (ERROR__PEP+13) /* Too long name of parameter */ #define ERROR__PEP_TOO_LONG_NAME (ERROR__PEP+14) /* error codes for different IPC facilities range 950 to 999 */ #define ERROR__IPC 950 #define ERROR__IPC_RANGE (ERROR__IPC+1) #define ERROR__IPC_GET (ERROR__IPC+2) #define ERROR__IPC_LOCK (ERROR__IPC+3) #define ERROR__IPC_UNLOCK (ERROR__IPC+4) /* error codes for 3D model modules range 1000 to 1200 */ #define ERROR__3DM 1000 #define ERROR__3DM_BAD_MODEL (ERROR__3DM+1) #define ERROR__3DM_BAD_SPLINE (ERROR__3DM+2) #define ERROR__3DM_BAD_BORDER (ERROR__3DM+3) #define ERROR__3DM_BAD_BODY (ERROR__3DM+4) #define ERROR__3DM_BAD_POINT (ERROR__3DM+5) #define ERROR__3DM_PM_BAD_RECEIVER (ERROR__3DM+6) #define ERROR__3DM_BAD_ID (ERROR__3DM+7) /* Expexted DB structure appeared to be corrupted (i.e. body isn't correctly written) */ #define ERROR__3DM_BAD_DB_TABLE_STRUCTURE (ERROR__3DM+8) /* Some sequence (splines, points) couldn't be interpreted */ #define ERROR__3DM_BAD_SEQUENCE (ERROR__3DM+9) /* Points, that should be different, appeared to coinside */ #define ERROR__3DM_PM_COINCIDED_POINTS (ERROR__3DM+10) /* Errors of the model with plain borders, raytracing and vsp-cdp of this model */ #define ERROR__3DM_PM 1050 /* Error while corellation of 1D model to 3D */ #define ERROR__3DM_PM_CORELLATE_ERROR (ERROR__3DM_PM+1) #define ERROR__3DM_PM_BAD_ANGLE (ERROR__3DM_PM+2) #define ERROR__3DM_PM_BAD_RAY (ERROR__3DM_PM+3) #define ERROR__3DM_PM_BAD_CONTAINER (ERROR__3DM_PM+4) /* No elements in a structure, that shouldn't be empty */ #define ERROR__3DM_PM_NO_ELEMENTS (ERROR__3DM_PM+5) /* Structure isn't ready for desired operation */ #define ERROR__3DM_PM_NOT_READY (ERROR__3DM_PM+6) /* Bad time-depth interpolation segment (probably before first-after last) */ #define ERROR__3DM_PM_BAD_SEGMENT (ERROR__3DM_PM+7) /* В стадии разработки - дерева всякие*/ #define ERROR__TREE 1100 /* 3D-2D графика (Open GL)*/ #define ERROR__GL 1200 #define ERROR__GL_BAD_VI (ERROR__GL+1) /* Rainbow hard key SentinelSuperPro communication API) from 1300 to 1399 */ #define ERROR__SP 1300 #define ERROR__SP_INVALID_FUNCTION_CODE (ERROR__SP+1) /* Packet must be inited (formatted) first. */ #define ERROR__SP_INVALID_PACKET (ERROR__SP+2) /* Key is not found. */ #define ERROR__SP_UNIT_NOT_FOUND (ERROR__SP+3) /* Trying to get value of algorithm (write-only) cell. */ #define ERROR__SP_ACCESS_DENIED (ERROR__SP+4) #define ERROR__SP_INVALID_MEMORY_ADDRESS (ERROR__SP+5) #define ERROR__SP_INVALID_ACCESS_CODE (ERROR__SP+6) #define ERROR__SP_PORT_IS_BUSY (ERROR__SP+7) #define ERROR__SP_WRITE_NOT_READY (ERROR__SP+8) #define ERROR__SP_NO_PORT_FOUND (ERROR__SP+9) #define ERROR__SP_ALREADY_ZERO (ERROR__SP+10) #define ERROR__SP_DRIVER_OPEN_ERROR (ERROR__SP+11) #define ERROR__SP_DRIVER_NOT_INSTALLED (ERROR__SP+12) #define ERROR__SP_IO_COMMUNICATIONS_ERROR (ERROR__SP+13) #define ERROR__SP_PACKET_TOO_SMALL (ERROR__SP+15) #define ERROR__SP_INVALID_PARAMETER (ERROR__SP+16) #define ERROR__SP_MEM_ACCESS_ERROR (ERROR__SP+17) #define ERROR__SP_VERSION_NOT_SUPPORTED (ERROR__SP+18) #define ERROR__SP_OS_NOT_SUPPORTED (ERROR__SP+19) #define ERROR__SP_QUERY_TOO_LONG (ERROR__SP+20) #define ERROR__SP_INVALID_COMMAND (ERROR__SP+21) #define ERROR__SP_MEM_ALIGNMENT_ERROR (ERROR__SP+29) #define ERROR__SP_DRIVER_IS_BUSY (ERROR__SP+30) #define ERROR__SP_PORT_ALLOCATION_FAILURE (ERROR__SP+31) #define ERROR__SP_PORT_RELEASE_FAILURE (ERROR__SP+32) #define ERROR__SP_ACQUIRE_PORT_TIMEOUT (ERROR__SP+39) #define ERROR__SP_SIGNAL_NOT_SUPPORTED (ERROR__SP+42) #define ERROR__SP_UNKNOWN_MACHINE (ERROR__SP+44) #define ERROR__SP_SYS_API_ERROR (ERROR__SP+45) #define ERROR__SP_UNIT_IS_BUSY (ERROR__SP+46) #define ERROR__SP_INVALID_PORT_TYPE (ERROR__SP+47) #define ERROR__SP_INVALID_MACH_TYPE (ERROR__SP+48) #define ERROR__SP_INVALID_IRQ_MASK (ERROR__SP+49) #define ERROR__SP_INVALID_CONT_METHOD (ERROR__SP+50) #define ERROR__SP_INVALID_PORT_FLAGS (ERROR__SP+51) #define ERROR__SP_INVALID_LOG_PORT_CFG (ERROR__SP+52) #define ERROR__SP_INVALID_OS_TYPE (ERROR__SP+53) #define ERROR__SP_INVALID_LOG_PORT_NUM (ERROR__SP+54) #define ERROR__SP_INVALID_ROUTER_FLGS (ERROR__SP+56) /* API is not initialized. */ #define ERROR__SP_INIT_NOT_CALLED (ERROR__SP+57) /* Kernel module is not installed or loaded. */ #define ERROR__SP_DRVR_TYPE_NOT_SUPPORTED (ERROR__SP+58) #define ERROR__SP_FAIL_ON_DRIVER_COMM (ERROR__SP+59) /* License problems (from 1400 to 1450) */ #define ERROR__LIC 1400 /* File with license number is not found */ #define ERROR__LIC_FILE_NOT_FOUND (ERROR__LIC+1) /* File with license number is not found */ #define ERROR__LIC_HARD_KEY_NOT_FOUND (ERROR__LIC+2) /* No license for this CPU */ #define ERROR__LIC_CPU_RESTRICT (ERROR__LIC+3) /* Maximum number of users is reached */ #define ERROR__LIC_USER_RESTRICT (ERROR__LIC+4) /* License is expired */ #define ERROR__LIC_DATE_RESTRICT (ERROR__LIC+5) /* Computer's timer is sick */ #define ERROR__LIC_FAKE_DATE (ERROR__LIC+6) /* Technical problems with session register management (IPC mainly) */ #define ERROR__LIC_SESSION_MANAGER (ERROR__LIC+7) /* Session is lost due to session register is broken or does not exist */ #define ERROR__LIC_LOST_SESSION (ERROR__LIC+8) /* Process can't create new session due to its limit is reached */ #define ERROR__LIC_TOO_MANY_SESSIONS (ERROR__LIC+9) /* License number is broken (checksum failed) */ #define ERROR__LIC_NUMBER_BROKEN (ERROR__LIC+10) /* Plugged key doesn't have expected serial number */ #define ERROR__LIC_KEY_RESTRICT (ERROR__LIC+11) /* Given license does not fit for this product */ #define ERROR__LIC_BAD_PRODUCT (ERROR__LIC+12) /* No hardkey hardware is supported by this version */ #define ERROR__LIC_HKEY_NOT_SUPPORTED (ERROR__LIC+13) /* License number is invalid (generated for dead key on platform where hostid is not supported) */ #define ERROR__LIC_NUMBER_INVALID (ERROR__LIC+14) /* Program is too new for given license (when upgrade of software is performed without upgrade of start date of license) */ #define ERROR__LIC_ILLEGAL_UPGRADE (ERROR__LIC+15) /* License file is empty and must be replaced by valid one. */ #define ERROR__LIC_DUMMY_LICENSE (ERROR__LIC+16) #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ const char* ErrCodeMsg (ErrCode ec); #ifdef __cplusplus }; #endif /* __cplusplus */ #endif /* _ERROR_H */ /* Melnikov George Yu. 4-Jun-1999 */ /* Melnikov George Yu. 9-Nov-1999 */ /* Melnikov George Yu. 28-Jan-2000 */
9  *
10  * Использование, копирование или передача регулируются законами
11  * Российской Федерации "Об авторском праве и смежных правах", "О * правовой охране программ для электронных вычислительных машин и баз * данных" * * Encoding: ISO-8859-5 (GOST) * *********************************************************************/ /******************************************************************************* DESCRIPTION: This include file contain some error codes used in Error System Handler facility. *******************************************************************************/ #ifndef _ERROR_H #define _ERROR_H #include <mix/Types.h> /* range from 0 to 99 is reserved */ #define OK 0 #define ERROR__FIRST 1 /* error codes for I/O operation is between 100 and 199 */ #define ERROR__IO 100 #define ERROR__OPEN_FILE (ERROR__IO+1) #define ERROR__CLOSE_FILE (ERROR__IO+2) #define ERROR__IO_ERROR (ERROR__IO+3) #define ERROR__IO_DUP (ERROR__IO+4) #define ERROR__STREAM (ERROR__IO+5) #define ERROR__BAD_PATH (ERROR__IO+6) #define ERROR__BAD_FD (ERROR__IO+7) #define ERROR__RO_FILE_NEEDED (ERROR__IO+8) #define ERROR__NON_REGULAR_FILE (ERROR__IO+9) #define ERROR__ZERO_FILE_SIZE (ERROR__IO+10) #define ERROR__READ (ERROR__IO+11) #define ERROR__WRITE (ERROR__IO+12) #define ERROR__SEEK (ERROR__IO+13) #define ERROR__MTAB_OPEN (ERROR__IO+14) #define ERROR__MTAB_READING (ERROR__IO+15) #define ERROR__MTAB_ALLOC (ERROR__IO+16) #define ERROR__MTAB_WRITING (ERROR__IO+17) #define ERROR__BAD_FILDES (ERROR__IO+18) #define ERROR__IO_STAT (ERROR__IO+19) #define ERROR__FILE_BOUNDS (ERROR__IO+20) #define ERROR__EOF (ERROR__IO+21) #define ERROR__NO_DISK_SPACE (ERROR__IO+22) #define ERROR__TRUNCATE (ERROR__IO+23) #define ERROR__BAD_PARAMS (ERROR__IO+24) #define ERROR__UNLINK (ERROR__IO+25) /* Strange error that would not be expected but had occured */ #define ERROR__CONFUSION (ERROR__IO+26) #define ERROR__READONLY_MODE (ERROR__IO+27) /* Error of access to locked sharable object */ #define ERROR__SHARED_REFUSED (ERROR__IO+28) /* Error due to bad or incomplete process environment */ #define ERROR__BAD_ENV (ERROR__IO+29) /* If something (usually file) is not found */ #define ERROR__NOT_FOUND (ERROR__IO+30) /* For announced, but not implemented features */ #define ERROR__N_A (ERROR__IO+31) /* Can't rename a file (or other object) */ #define ERROR__RENAME (ERROR__IO+32) /* Can't create something due to it exists */ #define ERROR__ALREADY_EXISTS (ERROR__IO+33) /* Problems while parsing some text file */ #define ERROR__TEXT_PARSING (ERROR__IO+34) /* popen call failed */ #define ERROR__POPEN (ERROR__IO+35) /* some operation over Int8 data on not-64-compatible platform */ #define ERROR__INT8_USAGE (ERROR__IO+36) /* unexpected character */ #define ERROR__BAD_CHAR (ERROR__IO+37) /* too long object (name, string, file etc) */ #define ERROR__TOO_LONG (ERROR__IO+38) /* bad syntax for expected value (text or string parsing) */ #define ERROR__BAD_SYNTAX (ERROR__IO+39) /* illegal operation (reading of WRONLY object or writing of RDONLY one) */ #define ERROR__ILLEGAL_OPER (ERROR__IO+40) /* error returned by mutex APIs */ #define ERROR__MUTEX (ERROR__IO+41) /* error codes for Memory function range 200 to 299 */ #define ERROR__MEM 200 /* Can not allocate memory successfully */ #define ERROR__ALLOC (ERROR__MEM+1) /* Can not free memory successfully */ #define ERROR__FREE (ERROR__MEM+2) /* Bad pointer's value */ #define ERROR__NULL (ERROR__MEM+3) /* Index is out of range */ #define ERROR__ARRAY_BOUNDS (ERROR__MEM+4) /* Some parameter (not pointer) has bad value */ #define ERROR__MISMATCH (ERROR__MEM+5) /* An object is not build properly and some fields need initialization */ #define ERROR__NO_INIT (ERROR__MEM+6) /* Usually string with first char == '\0' */ #define ERROR__EMPTY (ERROR__MEM+7) /* mmap() call is not success */ #define ERROR__MMAP_FAILED (ERROR__MEM+8) /* Data are present but they are too short; not enough data */ #define ERROR__SHORT_DATA (ERROR__MEM+9) /* Some data does not have an expected format */ #define ERROR__BAD_FORMAT (ERROR__MEM+10) /* Some data container can't be extented by new item(s) for some reason. */ #define ERROR__CANT_EXTEND (ERROR__MEM+11) /* error codes for Math range 300 to 399 */ #define ERROR__MATH 300 /* Input numeric parameter has not proper value */ #define ERROR__BOUNDS (ERROR__MATH+1) /* Numeric parameter can't be negative */ #define ERROR__NEGATIVE_NUMBER (ERROR__MATH+2) /* Numeric parameter must be greater than zero */ #define ERROR__NON_POSITIVE_NUMBER (ERROR__MATH+3) /* special error codes for FAT (File Access Tools) range 400 to 499 */ #define ERROR__FAT 400 #define ERROR__BAD_BLOCK_PARAMS (ERROR__FAT+1) #define ERROR__BAD_PATCH_PARAMS (ERROR__FAT+2) #define ERROR__ZERO_COUNT (ERROR__FAT+3) #define ERROR__OUT_OF_RANGE (ERROR__FAT+4) #define ERROR__NON_NATURAL_BLOCKS_COUNT (ERROR__FAT+5) #define ERROR__BAD_MOD_NAME (ERROR__FAT+6) #define ERROR__AUTODETECT_DISABLED (ERROR__FAT+7) /* error codes for X-Window operations range 500 to 599 */ #define ERROR__X 500 /*-----------------------------------------------------------* * Equivalence of X errors * So, (XErrorCode+ERROR__X) will be one of the next error * see also XGEnv::x_error() in `mix1/xgb/XGEnv.H' *-----------------------------------------------------------*/ /* bad request code */ #define ERROR__X_BAD_REQUEST (ERROR__X+1) /* int parameter out of range */ #define ERROR__X_BAD_VALUE (ERROR__X+2) /* parameter not a Window */ #define ERROR__X_BAD_WINDOW (ERROR__X+3) /* parameter not a Pixmap */ #define ERROR__X_BAD_PIXMAP (ERROR__X+4) /* parameter not an Atom */ #define ERROR__X_BAD_ATOM (ERROR__X+5) /* parameter not a Cursor */ #define ERROR__X_BAD_CURSOR (ERROR__X+6) /* parameter not a Font */ #define ERROR__X_BAD_FONT (ERROR__X+7) /* parameter mismatch */ #define ERROR__X_BAD_MATCH (ERROR__X+8) /* parameter not a Pixmap or Window */ #define ERROR__X_BAD_DRAWABLE (ERROR__X+9) /* depending on context: - key/button already grabbed - attempt to free an illegal cmap entry - attempt to store into a read-only color map entry. - attempt to modify the access control list from other than the local host. */ #define ERROR__X_BAD_ACCESS (ERROR__X+10) /* insufficient resources */ #define ERROR__X_BAD_ALLOC (ERROR__X+11) /* no such colormap */ #define ERROR__X_BAD_COLOR (ERROR__X+12) /* parameter not a GC */ #define ERROR__X_BAD_GC (ERROR__X+13) /* choice not in range or already used */ #define ERROR__X_BAD_IDCHOICE (ERROR__X+14) /* font or color name doesn't exist */ #define ERROR__X_BAD_NAME (ERROR__X+15) /* Request length incorrect */ #define ERROR__X_BAD_LENGTH (ERROR__X+16) /* server is defective */ #define ERROR__X_BAD_IMPLEMENTATION (ERROR__X+17) #define ERROR__X_GET_GC_VALUES (ERROR__X+18) #define ERROR__X_BAD_FONT_NAME (ERROR__X+19) #define ERROR__X_NO_SUCH_FONT (ERROR__X+20) #define ERROR__X_BAD_PALETTE (ERROR__X+21) #define ERROR__X_ZERO_SIZE (ERROR__X+22) #define ERROR__X_BAD_DISPLAY (ERROR__X+23) /* error codes for RadioGroup operations range 600 to 649 */ #define ERROR__RG 600 #define ERROR__RG_BAD_INDEX (ERROR__RG+1) #define ERROR__RG_BAD_PARAMETERS (ERROR__RG+2) #define ERROR__RG_BAD_MEMBER_PTR (ERROR__RG+3) #define ERROR__RG_BAD_ALLOC (ERROR__RG+4) #define ERROR__RG_NO_STATES (ERROR__RG+5) /* error codes for DynAr class range 650 to 699 */ #define ERROR__DA 650 #define ERROR__DA_UNEXTENDABLE_EMPTY (ERROR__DA+1) #define ERROR__DA_ZERO_UNIT (ERROR__DA+2) #define ERROR__DA_OWERFLOW (ERROR__DA+3) #define ERROR__DA_EMPTY_ARRAY (ERROR__DA+4) #define ERROR__DA_OUT_OF_RANGE (ERROR__DA+5) #define ERROR__DA_SIZE_MISMATCH (ERROR__DA+6) #define ERROR__DA_BAD_VALUE (ERROR__DA+7) #define ERROR__DA_BAD_ALLOC (ERROR__DA+8) #define ERROR__DA_UNKNOWN_KEY (ERROR__DA+9) #define ERROR__DA_KNOWN_KEY (ERROR__DA+10) /* error codes for DataBase library range 700 to 749 */ #define ERROR__DB 700 #define ERROR__DB_TYPE_MATCH (ERROR__DB+1) #define ERROR__DB_BAD_MODE (ERROR__DB+2) #define ERROR__DB_NO_DTBSPTR (ERROR__DB+3) #define ERROR__DB_BOUNDS (ERROR__DB+4) #define ERROR__DB_TYPE_CONVERTION (ERROR__DB+5) #define ERROR__DB_BAD_FILENAME (ERROR__DB+6) #define ERROR__DB_DMN_NOT_FOUND (ERROR__DB+7) #define ERROR__DB_BAD_MAGIC (ERROR__DB+8) #define ERROR__DB_FMT_MISMATCH (ERROR__DB+9) #define ERROR__DB_TT_NOT_FOUND (ERROR__DB+10) #define ERROR__DB_DIM_MISMATCH (ERROR__DB+11) /* Sharing violation due to existant r/o locks */ #define ERROR__DB_RO_LOCKED (ERROR__DB+12) /* Sharing violation due to existant r/w locks */ #define ERROR__DB_RW_LOCKED (ERROR__DB+13) /* Line is not found as loaded, but it have to be */ #define ERROR__DB_LINE_NOT_LOADED (ERROR__DB+14) /* Trying to fetch empty or absent data item from data cluster */ #define ERROR__DB_BAD_SLOT_FETCH (ERROR__DB+15) /* Item is not found - either trying to read from -1, or there are not so many lines in the db_table */ #define ERROR__DB_BAD_ITEM (ERROR__DB+16) /* Db table is not modifiable */ #define ERROR__DB_PROTECTED (ERROR__DB+17) /* Db lock was lost sometimes ago */ #define ERROR__DB_LOST_LOCK (ERROR__DB+18) /* error codes for Trace related operations range 750 to 799 */ #define ERROR__TRACE 750 #define ERROR__LOCKED_TRACE (ERROR__TRACE+1) #define ERROR__BAD_TAID (ERROR__TRACE+2) #define ERROR__TAID_PROHIBITED (ERROR__TRACE+3) #define ERROR__BAD_TRACE_FORMAT (ERROR__TRACE+4) #define ERROR__SHORT_HEADER (ERROR__TRACE+5) #define ERROR__TAID_TYPE (ERROR__TRACE+6) #define ERROR__ONLY_REAL4 (ERROR__TRACE+7) /* error codes for Z* library range 800 to 849 */ #define ERROR__Z 800 /* No Equivalent Class with such id */ #define ERROR__Z_BAD_ECID (ERROR__Z+1) /* Internal realization bug */ #define ERROR__Z_NULL_MEMBER (ERROR__Z+2) /* Negative coordinate (not implemented yet) */ #define ERROR__Z_BAD_COORD (ERROR__Z+3) /* Empty Equivalent Class */ #define ERROR__Z_NO_MEMBERS (ERROR__Z+4) /* No object with such index */ #define ERROR__Z_BAD_INDEX (ERROR__Z+5) /* 1) More than one object has unique property 2) Scale can not be displayed in two different dimensions */ #define ERROR__Z_UNCERTAIN (ERROR__Z+6) /* Zero range of units or coordinates (bounds, traces) */ #define ERROR__Z_ZERO_RANGE (ERROR__Z+7) /* Bad value in numeric argument */ #define ERROR__Z_BAD_VALUE (ERROR__Z+8) /* This group does not have linked one */ #define ERROR__Z_NOT_LINKED (ERROR__Z+9) /* Trying to link group to itself */ #define ERROR__Z_LINK_TO_ITSELF (ERROR__Z+10) /* Object does not have natural slave of pointed dimension */ #define ERROR__Z_NO_DIMENSION (ERROR__Z+11) /* There is not palette with pointed name */ #define ERROR__Z_NO_PALETTE (ERROR__Z+12) /* There are not colors in palette */ #define ERROR__Z_EMPTY_PALETTE (ERROR__Z+13) /* Index of color is out of palette range */ #define ERROR__Z_BAD_COLOR_INDEX (ERROR__Z+14) /* Can not get image by XGetImage */ #define ERROR__Z_BAD_GET_IMAGE (ERROR__Z+15) /* error codes for trace mapping modules range 850 to 899 */ #define ERROR__TM 850 /* Index of trace is out of range */ #define ERROR__TM_OUT_OF_RANGE (ERROR__TM+1) /* Size of file is not equal to integer count of traces */ #define ERROR__TM_ODD_SIZE (ERROR__TM+2) /* Needed access to trace map is denied */ #define ERROR__TM_ACCESS_DENIED (ERROR__TM+3) /* Bad format of trace file */ #define ERROR__TM_BAD_TRACE_FILE (ERROR__TM+4) /* error codes for PEP module range 900 to 949 */ #define ERROR__PEP 900 #define ERROR__PEP_UNKNOWN_TYPE (ERROR__PEP+1) #define ERROR__PEP_UNKNOWN_PARAM (ERROR__PEP+2) #define ERROR__PEP_TYPE_MISMATCH (ERROR__PEP+3) #define ERROR__PEP_VOID_CONNECTION (ERROR__PEP+4) /* Can not find [connection protocol] pair */ #define ERROR__PEP_NOT_FOUND (ERROR__PEP+5) /* Can not get unique key for IPC */ #define ERROR__PEP_IPC_KEY (ERROR__PEP+6) /* Can not get IPC handle (semaphores, shared memory or messages) */ #define ERROR__PEP_IPC_GET (ERROR__PEP+7) /* Can not lock/unlock semaphore */ #define ERROR__PEP_SEM_LOCK (ERROR__PEP+8) /* Something in handle is bad */ #define ERROR__PEP_DAMAGED (ERROR__PEP+9) /* Can not attach shared memory page */ #define ERROR__PEP_IPC_ATTACH (ERROR__PEP+10) /* Trying to access element out of allowed range */ #define ERROR__PEP_OUT_OF_RANGE (ERROR__PEP+11) /* Trying to use property of shared object by local one */ #define ERROR__PEP_NOT_IPC (ERROR__PEP+12) /* Unsuccessful stat of an IPC service */ #define ERROR__PEP_IPC_STAT (ERROR__PEP+13) /* Too long name of parameter */ #define ERROR__PEP_TOO_LONG_NAME (ERROR__PEP+14) /* error codes for different IPC facilities range 950 to 999 */ #define ERROR__IPC 950 #define ERROR__IPC_RANGE (ERROR__IPC+1) #define ERROR__IPC_GET (ERROR__IPC+2) #define ERROR__IPC_LOCK (ERROR__IPC+3) #define ERROR__IPC_UNLOCK (ERROR__IPC+4) /* error codes for 3D model modules range 1000 to 1200 */ #define ERROR__3DM 1000 #define ERROR__3DM_BAD_MODEL (ERROR__3DM+1) #define ERROR__3DM_BAD_SPLINE (ERROR__3DM+2) #define ERROR__3DM_BAD_BORDER (ERROR__3DM+3) #define ERROR__3DM_BAD_BODY (ERROR__3DM+4) #define ERROR__3DM_BAD_POINT (ERROR__3DM+5) #define ERROR__3DM_PM_BAD_RECEIVER (ERROR__3DM+6) #define ERROR__3DM_BAD_ID (ERROR__3DM+7) /* Expexted DB structure appeared to be corrupted (i.e. body isn't correctly written) */ #define ERROR__3DM_BAD_DB_TABLE_STRUCTURE (ERROR__3DM+8) /* Some sequence (splines, points) couldn't be interpreted */ #define ERROR__3DM_BAD_SEQUENCE (ERROR__3DM+9) /* Points, that should be different, appeared to coinside */ #define ERROR__3DM_PM_COINCIDED_POINTS (ERROR__3DM+10) /* Errors of the model with plain borders, raytracing and vsp-cdp of this model */ #define ERROR__3DM_PM 1050 /* Error while corellation of 1D model to 3D */ #define ERROR__3DM_PM_CORELLATE_ERROR (ERROR__3DM_PM+1) #define ERROR__3DM_PM_BAD_ANGLE (ERROR__3DM_PM+2) #define ERROR__3DM_PM_BAD_RAY (ERROR__3DM_PM+3) #define ERROR__3DM_PM_BAD_CONTAINER (ERROR__3DM_PM+4) /* No elements in a structure, that shouldn't be empty */ #define ERROR__3DM_PM_NO_ELEMENTS (ERROR__3DM_PM+5) /* Structure isn't ready for desired operation */ #define ERROR__3DM_PM_NOT_READY (ERROR__3DM_PM+6) /* Bad time-depth interpolation segment (probably before first-after last) */ #define ERROR__3DM_PM_BAD_SEGMENT (ERROR__3DM_PM+7) /* В стадии разработки - дерева всякие*/ #define ERROR__TREE 1100 /* 3D-2D графика (Open GL)*/ #define ERROR__GL 1200 #define ERROR__GL_BAD_VI (ERROR__GL+1) /* Rainbow hard key SentinelSuperPro communication API) from 1300 to 1399 */ #define ERROR__SP 1300 #define ERROR__SP_INVALID_FUNCTION_CODE (ERROR__SP+1) /* Packet must be inited (formatted) first. */ #define ERROR__SP_INVALID_PACKET (ERROR__SP+2) /* Key is not found. */ #define ERROR__SP_UNIT_NOT_FOUND (ERROR__SP+3) /* Trying to get value of algorithm (write-only) cell. */ #define ERROR__SP_ACCESS_DENIED (ERROR__SP+4) #define ERROR__SP_INVALID_MEMORY_ADDRESS (ERROR__SP+5) #define ERROR__SP_INVALID_ACCESS_CODE (ERROR__SP+6) #define ERROR__SP_PORT_IS_BUSY (ERROR__SP+7) #define ERROR__SP_WRITE_NOT_READY (ERROR__SP+8) #define ERROR__SP_NO_PORT_FOUND (ERROR__SP+9) #define ERROR__SP_ALREADY_ZERO (ERROR__SP+10) #define ERROR__SP_DRIVER_OPEN_ERROR (ERROR__SP+11) #define ERROR__SP_DRIVER_NOT_INSTALLED (ERROR__SP+12) #define ERROR__SP_IO_COMMUNICATIONS_ERROR (ERROR__SP+13) #define ERROR__SP_PACKET_TOO_SMALL (ERROR__SP+15) #define ERROR__SP_INVALID_PARAMETER (ERROR__SP+16) #define ERROR__SP_MEM_ACCESS_ERROR (ERROR__SP+17) #define ERROR__SP_VERSION_NOT_SUPPORTED (ERROR__SP+18) #define ERROR__SP_OS_NOT_SUPPORTED (ERROR__SP+19) #define ERROR__SP_QUERY_TOO_LONG (ERROR__SP+20) #define ERROR__SP_INVALID_COMMAND (ERROR__SP+21) #define ERROR__SP_MEM_ALIGNMENT_ERROR (ERROR__SP+29) #define ERROR__SP_DRIVER_IS_BUSY (ERROR__SP+30) #define ERROR__SP_PORT_ALLOCATION_FAILURE (ERROR__SP+31) #define ERROR__SP_PORT_RELEASE_FAILURE (ERROR__SP+32) #define ERROR__SP_ACQUIRE_PORT_TIMEOUT (ERROR__SP+39) #define ERROR__SP_SIGNAL_NOT_SUPPORTED (ERROR__SP+42) #define ERROR__SP_UNKNOWN_MACHINE (ERROR__SP+44) #define ERROR__SP_SYS_API_ERROR (ERROR__SP+45) #define ERROR__SP_UNIT_IS_BUSY (ERROR__SP+46) #define ERROR__SP_INVALID_PORT_TYPE (ERROR__SP+47) #define ERROR__SP_INVALID_MACH_TYPE (ERROR__SP+48) #define ERROR__SP_INVALID_IRQ_MASK (ERROR__SP+49) #define ERROR__SP_INVALID_CONT_METHOD (ERROR__SP+50) #define ERROR__SP_INVALID_PORT_FLAGS (ERROR__SP+51) #define ERROR__SP_INVALID_LOG_PORT_CFG (ERROR__SP+52) #define ERROR__SP_INVALID_OS_TYPE (ERROR__SP+53) #define ERROR__SP_INVALID_LOG_PORT_NUM (ERROR__SP+54) #define ERROR__SP_INVALID_ROUTER_FLGS (ERROR__SP+56) /* API is not initialized. */ #define ERROR__SP_INIT_NOT_CALLED (ERROR__SP+57) /* Kernel module is not installed or loaded. */ #define ERROR__SP_DRVR_TYPE_NOT_SUPPORTED (ERROR__SP+58) #define ERROR__SP_FAIL_ON_DRIVER_COMM (ERROR__SP+59) /* License problems (from 1400 to 1450) */ #define ERROR__LIC 1400 /* File with license number is not found */ #define ERROR__LIC_FILE_NOT_FOUND (ERROR__LIC+1) /* File with license number is not found */ #define ERROR__LIC_HARD_KEY_NOT_FOUND (ERROR__LIC+2) /* No license for this CPU */ #define ERROR__LIC_CPU_RESTRICT (ERROR__LIC+3) /* Maximum number of users is reached */ #define ERROR__LIC_USER_RESTRICT (ERROR__LIC+4) /* License is expired */ #define ERROR__LIC_DATE_RESTRICT (ERROR__LIC+5) /* Computer's timer is sick */ #define ERROR__LIC_FAKE_DATE (ERROR__LIC+6) /* Technical problems with session register management (IPC mainly) */ #define ERROR__LIC_SESSION_MANAGER (ERROR__LIC+7) /* Session is lost due to session register is broken or does not exist */ #define ERROR__LIC_LOST_SESSION (ERROR__LIC+8) /* Process can't create new session due to its limit is reached */ #define ERROR__LIC_TOO_MANY_SESSIONS (ERROR__LIC+9) /* License number is broken (checksum failed) */ #define ERROR__LIC_NUMBER_BROKEN (ERROR__LIC+10) /* Plugged key doesn't have expected serial number */ #define ERROR__LIC_KEY_RESTRICT (ERROR__LIC+11) /* Given license does not fit for this product */ #define ERROR__LIC_BAD_PRODUCT (ERROR__LIC+12) /* No hardkey hardware is supported by this version */ #define ERROR__LIC_HKEY_NOT_SUPPORTED (ERROR__LIC+13) /* License number is invalid (generated for dead key on platform where hostid is not supported) */ #define ERROR__LIC_NUMBER_INVALID (ERROR__LIC+14) /* Program is too new for given license (when upgrade of software is performed without upgrade of start date of license) */ #define ERROR__LIC_ILLEGAL_UPGRADE (ERROR__LIC+15) /* License file is empty and must be replaced by valid one. */ #define ERROR__LIC_DUMMY_LICENSE (ERROR__LIC+16) #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ const char* ErrCodeMsg (ErrCode ec); #ifdef __cplusplus }; #endif /* __cplusplus */ #endif /* _ERROR_H */ /* Melnikov George Yu. 4-Jun-1999 */ /* Melnikov George Yu. 9-Nov-1999 */ /* Melnikov George Yu. 28-Jan-2000 */
12  * правовой охране программ для электронных вычислительных машин и баз * данных" * * Encoding: ISO-8859-5 (GOST) * *********************************************************************/ /******************************************************************************* DESCRIPTION: This include file contain some error codes used in Error System Handler facility. *******************************************************************************/ #ifndef _ERROR_H #define _ERROR_H #include <mix/Types.h> /* range from 0 to 99 is reserved */ #define OK 0 #define ERROR__FIRST 1 /* error codes for I/O operation is between 100 and 199 */ #define ERROR__IO 100 #define ERROR__OPEN_FILE (ERROR__IO+1) #define ERROR__CLOSE_FILE (ERROR__IO+2) #define ERROR__IO_ERROR (ERROR__IO+3) #define ERROR__IO_DUP (ERROR__IO+4) #define ERROR__STREAM (ERROR__IO+5) #define ERROR__BAD_PATH (ERROR__IO+6) #define ERROR__BAD_FD (ERROR__IO+7) #define ERROR__RO_FILE_NEEDED (ERROR__IO+8) #define ERROR__NON_REGULAR_FILE (ERROR__IO+9) #define ERROR__ZERO_FILE_SIZE (ERROR__IO+10) #define ERROR__READ (ERROR__IO+11) #define ERROR__WRITE (ERROR__IO+12) #define ERROR__SEEK (ERROR__IO+13) #define ERROR__MTAB_OPEN (ERROR__IO+14) #define ERROR__MTAB_READING (ERROR__IO+15) #define ERROR__MTAB_ALLOC (ERROR__IO+16) #define ERROR__MTAB_WRITING (ERROR__IO+17) #define ERROR__BAD_FILDES (ERROR__IO+18) #define ERROR__IO_STAT (ERROR__IO+19) #define ERROR__FILE_BOUNDS (ERROR__IO+20) #define ERROR__EOF (ERROR__IO+21) #define ERROR__NO_DISK_SPACE (ERROR__IO+22) #define ERROR__TRUNCATE (ERROR__IO+23) #define ERROR__BAD_PARAMS (ERROR__IO+24) #define ERROR__UNLINK (ERROR__IO+25) /* Strange error that would not be expected but had occured */ #define ERROR__CONFUSION (ERROR__IO+26) #define ERROR__READONLY_MODE (ERROR__IO+27) /* Error of access to locked sharable object */ #define ERROR__SHARED_REFUSED (ERROR__IO+28) /* Error due to bad or incomplete process environment */ #define ERROR__BAD_ENV (ERROR__IO+29) /* If something (usually file) is not found */ #define ERROR__NOT_FOUND (ERROR__IO+30) /* For announced, but not implemented features */ #define ERROR__N_A (ERROR__IO+31) /* Can't rename a file (or other object) */ #define ERROR__RENAME (ERROR__IO+32) /* Can't create something due to it exists */ #define ERROR__ALREADY_EXISTS (ERROR__IO+33) /* Problems while parsing some text file */ #define ERROR__TEXT_PARSING (ERROR__IO+34) /* popen call failed */ #define ERROR__POPEN (ERROR__IO+35) /* some operation over Int8 data on not-64-compatible platform */ #define ERROR__INT8_USAGE (ERROR__IO+36) /* unexpected character */ #define ERROR__BAD_CHAR (ERROR__IO+37) /* too long object (name, string, file etc) */ #define ERROR__TOO_LONG (ERROR__IO+38) /* bad syntax for expected value (text or string parsing) */ #define ERROR__BAD_SYNTAX (ERROR__IO+39) /* illegal operation (reading of WRONLY object or writing of RDONLY one) */ #define ERROR__ILLEGAL_OPER (ERROR__IO+40) /* error returned by mutex APIs */ #define ERROR__MUTEX (ERROR__IO+41) /* error codes for Memory function range 200 to 299 */ #define ERROR__MEM 200 /* Can not allocate memory successfully */ #define ERROR__ALLOC (ERROR__MEM+1) /* Can not free memory successfully */ #define ERROR__FREE (ERROR__MEM+2) /* Bad pointer's value */ #define ERROR__NULL (ERROR__MEM+3) /* Index is out of range */ #define ERROR__ARRAY_BOUNDS (ERROR__MEM+4) /* Some parameter (not pointer) has bad value */ #define ERROR__MISMATCH (ERROR__MEM+5) /* An object is not build properly and some fields need initialization */ #define ERROR__NO_INIT (ERROR__MEM+6) /* Usually string with first char == '\0' */ #define ERROR__EMPTY (ERROR__MEM+7) /* mmap() call is not success */ #define ERROR__MMAP_FAILED (ERROR__MEM+8) /* Data are present but they are too short; not enough data */ #define ERROR__SHORT_DATA (ERROR__MEM+9) /* Some data does not have an expected format */ #define ERROR__BAD_FORMAT (ERROR__MEM+10) /* Some data container can't be extented by new item(s) for some reason. */ #define ERROR__CANT_EXTEND (ERROR__MEM+11) /* error codes for Math range 300 to 399 */ #define ERROR__MATH 300 /* Input numeric parameter has not proper value */ #define ERROR__BOUNDS (ERROR__MATH+1) /* Numeric parameter can't be negative */ #define ERROR__NEGATIVE_NUMBER (ERROR__MATH+2) /* Numeric parameter must be greater than zero */ #define ERROR__NON_POSITIVE_NUMBER (ERROR__MATH+3) /* special error codes for FAT (File Access Tools) range 400 to 499 */ #define ERROR__FAT 400 #define ERROR__BAD_BLOCK_PARAMS (ERROR__FAT+1) #define ERROR__BAD_PATCH_PARAMS (ERROR__FAT+2) #define ERROR__ZERO_COUNT (ERROR__FAT+3) #define ERROR__OUT_OF_RANGE (ERROR__FAT+4) #define ERROR__NON_NATURAL_BLOCKS_COUNT (ERROR__FAT+5) #define ERROR__BAD_MOD_NAME (ERROR__FAT+6) #define ERROR__AUTODETECT_DISABLED (ERROR__FAT+7) /* error codes for X-Window operations range 500 to 599 */ #define ERROR__X 500 /*-----------------------------------------------------------* * Equivalence of X errors * So, (XErrorCode+ERROR__X) will be one of the next error * see also XGEnv::x_error() in `mix1/xgb/XGEnv.H' *-----------------------------------------------------------*/ /* bad request code */ #define ERROR__X_BAD_REQUEST (ERROR__X+1) /* int parameter out of range */ #define ERROR__X_BAD_VALUE (ERROR__X+2) /* parameter not a Window */ #define ERROR__X_BAD_WINDOW (ERROR__X+3) /* parameter not a Pixmap */ #define ERROR__X_BAD_PIXMAP (ERROR__X+4) /* parameter not an Atom */ #define ERROR__X_BAD_ATOM (ERROR__X+5) /* parameter not a Cursor */ #define ERROR__X_BAD_CURSOR (ERROR__X+6) /* parameter not a Font */ #define ERROR__X_BAD_FONT (ERROR__X+7) /* parameter mismatch */ #define ERROR__X_BAD_MATCH (ERROR__X+8) /* parameter not a Pixmap or Window */ #define ERROR__X_BAD_DRAWABLE (ERROR__X+9) /* depending on context: - key/button already grabbed - attempt to free an illegal cmap entry - attempt to store into a read-only color map entry. - attempt to modify the access control list from other than the local host. */ #define ERROR__X_BAD_ACCESS (ERROR__X+10) /* insufficient resources */ #define ERROR__X_BAD_ALLOC (ERROR__X+11) /* no such colormap */ #define ERROR__X_BAD_COLOR (ERROR__X+12) /* parameter not a GC */ #define ERROR__X_BAD_GC (ERROR__X+13) /* choice not in range or already used */ #define ERROR__X_BAD_IDCHOICE (ERROR__X+14) /* font or color name doesn't exist */ #define ERROR__X_BAD_NAME (ERROR__X+15) /* Request length incorrect */ #define ERROR__X_BAD_LENGTH (ERROR__X+16) /* server is defective */ #define ERROR__X_BAD_IMPLEMENTATION (ERROR__X+17) #define ERROR__X_GET_GC_VALUES (ERROR__X+18) #define ERROR__X_BAD_FONT_NAME (ERROR__X+19) #define ERROR__X_NO_SUCH_FONT (ERROR__X+20) #define ERROR__X_BAD_PALETTE (ERROR__X+21) #define ERROR__X_ZERO_SIZE (ERROR__X+22) #define ERROR__X_BAD_DISPLAY (ERROR__X+23) /* error codes for RadioGroup operations range 600 to 649 */ #define ERROR__RG 600 #define ERROR__RG_BAD_INDEX (ERROR__RG+1) #define ERROR__RG_BAD_PARAMETERS (ERROR__RG+2) #define ERROR__RG_BAD_MEMBER_PTR (ERROR__RG+3) #define ERROR__RG_BAD_ALLOC (ERROR__RG+4) #define ERROR__RG_NO_STATES (ERROR__RG+5) /* error codes for DynAr class range 650 to 699 */ #define ERROR__DA 650 #define ERROR__DA_UNEXTENDABLE_EMPTY (ERROR__DA+1) #define ERROR__DA_ZERO_UNIT (ERROR__DA+2) #define ERROR__DA_OWERFLOW (ERROR__DA+3) #define ERROR__DA_EMPTY_ARRAY (ERROR__DA+4) #define ERROR__DA_OUT_OF_RANGE (ERROR__DA+5) #define ERROR__DA_SIZE_MISMATCH (ERROR__DA+6) #define ERROR__DA_BAD_VALUE (ERROR__DA+7) #define ERROR__DA_BAD_ALLOC (ERROR__DA+8) #define ERROR__DA_UNKNOWN_KEY (ERROR__DA+9) #define ERROR__DA_KNOWN_KEY (ERROR__DA+10) /* error codes for DataBase library range 700 to 749 */ #define ERROR__DB 700 #define ERROR__DB_TYPE_MATCH (ERROR__DB+1) #define ERROR__DB_BAD_MODE (ERROR__DB+2) #define ERROR__DB_NO_DTBSPTR (ERROR__DB+3) #define ERROR__DB_BOUNDS (ERROR__DB+4) #define ERROR__DB_TYPE_CONVERTION (ERROR__DB+5) #define ERROR__DB_BAD_FILENAME (ERROR__DB+6) #define ERROR__DB_DMN_NOT_FOUND (ERROR__DB+7) #define ERROR__DB_BAD_MAGIC (ERROR__DB+8) #define ERROR__DB_FMT_MISMATCH (ERROR__DB+9) #define ERROR__DB_TT_NOT_FOUND (ERROR__DB+10) #define ERROR__DB_DIM_MISMATCH (ERROR__DB+11) /* Sharing violation due to existant r/o locks */ #define ERROR__DB_RO_LOCKED (ERROR__DB+12) /* Sharing violation due to existant r/w locks */ #define ERROR__DB_RW_LOCKED (ERROR__DB+13) /* Line is not found as loaded, but it have to be */ #define ERROR__DB_LINE_NOT_LOADED (ERROR__DB+14) /* Trying to fetch empty or absent data item from data cluster */ #define ERROR__DB_BAD_SLOT_FETCH (ERROR__DB+15) /* Item is not found - either trying to read from -1, or there are not so many lines in the db_table */ #define ERROR__DB_BAD_ITEM (ERROR__DB+16) /* Db table is not modifiable */ #define ERROR__DB_PROTECTED (ERROR__DB+17) /* Db lock was lost sometimes ago */ #define ERROR__DB_LOST_LOCK (ERROR__DB+18) /* error codes for Trace related operations range 750 to 799 */ #define ERROR__TRACE 750 #define ERROR__LOCKED_TRACE (ERROR__TRACE+1) #define ERROR__BAD_TAID (ERROR__TRACE+2) #define ERROR__TAID_PROHIBITED (ERROR__TRACE+3) #define ERROR__BAD_TRACE_FORMAT (ERROR__TRACE+4) #define ERROR__SHORT_HEADER (ERROR__TRACE+5) #define ERROR__TAID_TYPE (ERROR__TRACE+6) #define ERROR__ONLY_REAL4 (ERROR__TRACE+7) /* error codes for Z* library range 800 to 849 */ #define ERROR__Z 800 /* No Equivalent Class with such id */ #define ERROR__Z_BAD_ECID (ERROR__Z+1) /* Internal realization bug */ #define ERROR__Z_NULL_MEMBER (ERROR__Z+2) /* Negative coordinate (not implemented yet) */ #define ERROR__Z_BAD_COORD (ERROR__Z+3) /* Empty Equivalent Class */ #define ERROR__Z_NO_MEMBERS (ERROR__Z+4) /* No object with such index */ #define ERROR__Z_BAD_INDEX (ERROR__Z+5) /* 1) More than one object has unique property 2) Scale can not be displayed in two different dimensions */ #define ERROR__Z_UNCERTAIN (ERROR__Z+6) /* Zero range of units or coordinates (bounds, traces) */ #define ERROR__Z_ZERO_RANGE (ERROR__Z+7) /* Bad value in numeric argument */ #define ERROR__Z_BAD_VALUE (ERROR__Z+8) /* This group does not have linked one */ #define ERROR__Z_NOT_LINKED (ERROR__Z+9) /* Trying to link group to itself */ #define ERROR__Z_LINK_TO_ITSELF (ERROR__Z+10) /* Object does not have natural slave of pointed dimension */ #define ERROR__Z_NO_DIMENSION (ERROR__Z+11) /* There is not palette with pointed name */ #define ERROR__Z_NO_PALETTE (ERROR__Z+12) /* There are not colors in palette */ #define ERROR__Z_EMPTY_PALETTE (ERROR__Z+13) /* Index of color is out of palette range */ #define ERROR__Z_BAD_COLOR_INDEX (ERROR__Z+14) /* Can not get image by XGetImage */ #define ERROR__Z_BAD_GET_IMAGE (ERROR__Z+15) /* error codes for trace mapping modules range 850 to 899 */ #define ERROR__TM 850 /* Index of trace is out of range */ #define ERROR__TM_OUT_OF_RANGE (ERROR__TM+1) /* Size of file is not equal to integer count of traces */ #define ERROR__TM_ODD_SIZE (ERROR__TM+2) /* Needed access to trace map is denied */ #define ERROR__TM_ACCESS_DENIED (ERROR__TM+3) /* Bad format of trace file */ #define ERROR__TM_BAD_TRACE_FILE (ERROR__TM+4) /* error codes for PEP module range 900 to 949 */ #define ERROR__PEP 900 #define ERROR__PEP_UNKNOWN_TYPE (ERROR__PEP+1) #define ERROR__PEP_UNKNOWN_PARAM (ERROR__PEP+2) #define ERROR__PEP_TYPE_MISMATCH (ERROR__PEP+3) #define ERROR__PEP_VOID_CONNECTION (ERROR__PEP+4) /* Can not find [connection protocol] pair */ #define ERROR__PEP_NOT_FOUND (ERROR__PEP+5) /* Can not get unique key for IPC */ #define ERROR__PEP_IPC_KEY (ERROR__PEP+6) /* Can not get IPC handle (semaphores, shared memory or messages) */ #define ERROR__PEP_IPC_GET (ERROR__PEP+7) /* Can not lock/unlock semaphore */ #define ERROR__PEP_SEM_LOCK (ERROR__PEP+8) /* Something in handle is bad */ #define ERROR__PEP_DAMAGED (ERROR__PEP+9) /* Can not attach shared memory page */ #define ERROR__PEP_IPC_ATTACH (ERROR__PEP+10) /* Trying to access element out of allowed range */ #define ERROR__PEP_OUT_OF_RANGE (ERROR__PEP+11) /* Trying to use property of shared object by local one */ #define ERROR__PEP_NOT_IPC (ERROR__PEP+12) /* Unsuccessful stat of an IPC service */ #define ERROR__PEP_IPC_STAT (ERROR__PEP+13) /* Too long name of parameter */ #define ERROR__PEP_TOO_LONG_NAME (ERROR__PEP+14) /* error codes for different IPC facilities range 950 to 999 */ #define ERROR__IPC 950 #define ERROR__IPC_RANGE (ERROR__IPC+1) #define ERROR__IPC_GET (ERROR__IPC+2) #define ERROR__IPC_LOCK (ERROR__IPC+3) #define ERROR__IPC_UNLOCK (ERROR__IPC+4) /* error codes for 3D model modules range 1000 to 1200 */ #define ERROR__3DM 1000 #define ERROR__3DM_BAD_MODEL (ERROR__3DM+1) #define ERROR__3DM_BAD_SPLINE (ERROR__3DM+2) #define ERROR__3DM_BAD_BORDER (ERROR__3DM+3) #define ERROR__3DM_BAD_BODY (ERROR__3DM+4) #define ERROR__3DM_BAD_POINT (ERROR__3DM+5) #define ERROR__3DM_PM_BAD_RECEIVER (ERROR__3DM+6) #define ERROR__3DM_BAD_ID (ERROR__3DM+7) /* Expexted DB structure appeared to be corrupted (i.e. body isn't correctly written) */ #define ERROR__3DM_BAD_DB_TABLE_STRUCTURE (ERROR__3DM+8) /* Some sequence (splines, points) couldn't be interpreted */ #define ERROR__3DM_BAD_SEQUENCE (ERROR__3DM+9) /* Points, that should be different, appeared to coinside */ #define ERROR__3DM_PM_COINCIDED_POINTS (ERROR__3DM+10) /* Errors of the model with plain borders, raytracing and vsp-cdp of this model */ #define ERROR__3DM_PM 1050 /* Error while corellation of 1D model to 3D */ #define ERROR__3DM_PM_CORELLATE_ERROR (ERROR__3DM_PM+1) #define ERROR__3DM_PM_BAD_ANGLE (ERROR__3DM_PM+2) #define ERROR__3DM_PM_BAD_RAY (ERROR__3DM_PM+3) #define ERROR__3DM_PM_BAD_CONTAINER (ERROR__3DM_PM+4) /* No elements in a structure, that shouldn't be empty */ #define ERROR__3DM_PM_NO_ELEMENTS (ERROR__3DM_PM+5) /* Structure isn't ready for desired operation */ #define ERROR__3DM_PM_NOT_READY (ERROR__3DM_PM+6) /* Bad time-depth interpolation segment (probably before first-after last) */ #define ERROR__3DM_PM_BAD_SEGMENT (ERROR__3DM_PM+7) /* В стадии разработки - дерева всякие*/ #define ERROR__TREE 1100 /* 3D-2D графика (Open GL)*/ #define ERROR__GL 1200 #define ERROR__GL_BAD_VI (ERROR__GL+1) /* Rainbow hard key SentinelSuperPro communication API) from 1300 to 1399 */ #define ERROR__SP 1300 #define ERROR__SP_INVALID_FUNCTION_CODE (ERROR__SP+1) /* Packet must be inited (formatted) first. */ #define ERROR__SP_INVALID_PACKET (ERROR__SP+2) /* Key is not found. */ #define ERROR__SP_UNIT_NOT_FOUND (ERROR__SP+3) /* Trying to get value of algorithm (write-only) cell. */ #define ERROR__SP_ACCESS_DENIED (ERROR__SP+4) #define ERROR__SP_INVALID_MEMORY_ADDRESS (ERROR__SP+5) #define ERROR__SP_INVALID_ACCESS_CODE (ERROR__SP+6) #define ERROR__SP_PORT_IS_BUSY (ERROR__SP+7) #define ERROR__SP_WRITE_NOT_READY (ERROR__SP+8) #define ERROR__SP_NO_PORT_FOUND (ERROR__SP+9) #define ERROR__SP_ALREADY_ZERO (ERROR__SP+10) #define ERROR__SP_DRIVER_OPEN_ERROR (ERROR__SP+11) #define ERROR__SP_DRIVER_NOT_INSTALLED (ERROR__SP+12) #define ERROR__SP_IO_COMMUNICATIONS_ERROR (ERROR__SP+13) #define ERROR__SP_PACKET_TOO_SMALL (ERROR__SP+15) #define ERROR__SP_INVALID_PARAMETER (ERROR__SP+16) #define ERROR__SP_MEM_ACCESS_ERROR (ERROR__SP+17) #define ERROR__SP_VERSION_NOT_SUPPORTED (ERROR__SP+18) #define ERROR__SP_OS_NOT_SUPPORTED (ERROR__SP+19) #define ERROR__SP_QUERY_TOO_LONG (ERROR__SP+20) #define ERROR__SP_INVALID_COMMAND (ERROR__SP+21) #define ERROR__SP_MEM_ALIGNMENT_ERROR (ERROR__SP+29) #define ERROR__SP_DRIVER_IS_BUSY (ERROR__SP+30) #define ERROR__SP_PORT_ALLOCATION_FAILURE (ERROR__SP+31) #define ERROR__SP_PORT_RELEASE_FAILURE (ERROR__SP+32) #define ERROR__SP_ACQUIRE_PORT_TIMEOUT (ERROR__SP+39) #define ERROR__SP_SIGNAL_NOT_SUPPORTED (ERROR__SP+42) #define ERROR__SP_UNKNOWN_MACHINE (ERROR__SP+44) #define ERROR__SP_SYS_API_ERROR (ERROR__SP+45) #define ERROR__SP_UNIT_IS_BUSY (ERROR__SP+46) #define ERROR__SP_INVALID_PORT_TYPE (ERROR__SP+47) #define ERROR__SP_INVALID_MACH_TYPE (ERROR__SP+48) #define ERROR__SP_INVALID_IRQ_MASK (ERROR__SP+49) #define ERROR__SP_INVALID_CONT_METHOD (ERROR__SP+50) #define ERROR__SP_INVALID_PORT_FLAGS (ERROR__SP+51) #define ERROR__SP_INVALID_LOG_PORT_CFG (ERROR__SP+52) #define ERROR__SP_INVALID_OS_TYPE (ERROR__SP+53) #define ERROR__SP_INVALID_LOG_PORT_NUM (ERROR__SP+54) #define ERROR__SP_INVALID_ROUTER_FLGS (ERROR__SP+56) /* API is not initialized. */ #define ERROR__SP_INIT_NOT_CALLED (ERROR__SP+57) /* Kernel module is not installed or loaded. */ #define ERROR__SP_DRVR_TYPE_NOT_SUPPORTED (ERROR__SP+58) #define ERROR__SP_FAIL_ON_DRIVER_COMM (ERROR__SP+59) /* License problems (from 1400 to 1450) */ #define ERROR__LIC 1400 /* File with license number is not found */ #define ERROR__LIC_FILE_NOT_FOUND (ERROR__LIC+1) /* File with license number is not found */ #define ERROR__LIC_HARD_KEY_NOT_FOUND (ERROR__LIC+2) /* No license for this CPU */ #define ERROR__LIC_CPU_RESTRICT (ERROR__LIC+3) /* Maximum number of users is reached */ #define ERROR__LIC_USER_RESTRICT (ERROR__LIC+4) /* License is expired */ #define ERROR__LIC_DATE_RESTRICT (ERROR__LIC+5) /* Computer's timer is sick */ #define ERROR__LIC_FAKE_DATE (ERROR__LIC+6) /* Technical problems with session register management (IPC mainly) */ #define ERROR__LIC_SESSION_MANAGER (ERROR__LIC+7) /* Session is lost due to session register is broken or does not exist */ #define ERROR__LIC_LOST_SESSION (ERROR__LIC+8) /* Process can't create new session due to its limit is reached */ #define ERROR__LIC_TOO_MANY_SESSIONS (ERROR__LIC+9) /* License number is broken (checksum failed) */ #define ERROR__LIC_NUMBER_BROKEN (ERROR__LIC+10) /* Plugged key doesn't have expected serial number */ #define ERROR__LIC_KEY_RESTRICT (ERROR__LIC+11) /* Given license does not fit for this product */ #define ERROR__LIC_BAD_PRODUCT (ERROR__LIC+12) /* No hardkey hardware is supported by this version */ #define ERROR__LIC_HKEY_NOT_SUPPORTED (ERROR__LIC+13) /* License number is invalid (generated for dead key on platform where hostid is not supported) */ #define ERROR__LIC_NUMBER_INVALID (ERROR__LIC+14) /* Program is too new for given license (when upgrade of software is performed without upgrade of start date of license) */ #define ERROR__LIC_ILLEGAL_UPGRADE (ERROR__LIC+15) /* License file is empty and must be replaced by valid one. */ #define ERROR__LIC_DUMMY_LICENSE (ERROR__LIC+16) #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ const char* ErrCodeMsg (ErrCode ec); #ifdef __cplusplus }; #endif /* __cplusplus */ #endif /* _ERROR_H */ /* Melnikov George Yu. 4-Jun-1999 */ /* Melnikov George Yu. 9-Nov-1999 */ /* Melnikov George Yu. 28-Jan-2000 */
13  * данных"
14  *
15  * Encoding: ISO-8859-5 (GOST)
16  *
17  *********************************************************************/
18 
19 /*******************************************************************************
20  DESCRIPTION: This include file contain some error codes used in
21  Error System Handler facility.
22 *******************************************************************************/
23 
24 #ifndef _ERROR_H
25 #define _ERROR_H
26 
27 #include <mix/Types.h>
28 
29 
30 /* range from 0 to 99 is reserved */
31 #define OK 0
32 #define ERROR__FIRST 1
33 
34 /* error codes for I/O operation is between 100 and 199 */
35 #define ERROR__IO 100
36 #define ERROR__OPEN_FILE (ERROR__IO+1)
37 #define ERROR__CLOSE_FILE (ERROR__IO+2)
38 #define ERROR__IO_ERROR (ERROR__IO+3)
39 #define ERROR__IO_DUP (ERROR__IO+4)
40 #define ERROR__STREAM (ERROR__IO+5)
41 #define ERROR__BAD_PATH (ERROR__IO+6)
42 #define ERROR__BAD_FD (ERROR__IO+7)
43 #define ERROR__RO_FILE_NEEDED (ERROR__IO+8)
44 #define ERROR__NON_REGULAR_FILE (ERROR__IO+9)
45 #define ERROR__ZERO_FILE_SIZE (ERROR__IO+10)
46 #define ERROR__READ (ERROR__IO+11)
47 #define ERROR__WRITE (ERROR__IO+12)
48 #define ERROR__SEEK (ERROR__IO+13)
49 #define ERROR__MTAB_OPEN (ERROR__IO+14)
50 #define ERROR__MTAB_READING (ERROR__IO+15)
51 #define ERROR__MTAB_ALLOC (ERROR__IO+16)
52 #define ERROR__MTAB_WRITING (ERROR__IO+17)
53 #define ERROR__BAD_FILDES (ERROR__IO+18)
54 #define ERROR__IO_STAT (ERROR__IO+19)
55 #define ERROR__FILE_BOUNDS (ERROR__IO+20)
56 #define ERROR__EOF (ERROR__IO+21)
57 #define ERROR__NO_DISK_SPACE (ERROR__IO+22)
58 #define ERROR__TRUNCATE (ERROR__IO+23)
59 #define ERROR__BAD_PARAMS (ERROR__IO+24)
60 #define ERROR__UNLINK (ERROR__IO+25)
61 
62 /* Strange error that would not be expected but had occured */
63 #define ERROR__CONFUSION (ERROR__IO+26)
64 #define ERROR__READONLY_MODE (ERROR__IO+27)
65 
66 /* Error of access to locked sharable object */
67 #define ERROR__SHARED_REFUSED (ERROR__IO+28)
68 
69 /* Error due to bad or incomplete process environment */
70 #define ERROR__BAD_ENV (ERROR__IO+29)
71 
72 /* If something (usually file) is not found */
73 #define ERROR__NOT_FOUND (ERROR__IO+30)
74 
75 /* For announced, but not implemented features */
76 #define ERROR__N_A (ERROR__IO+31)
77 
78 /* Can't rename a file (or other object) */
79 #define ERROR__RENAME (ERROR__IO+32)
80 
81 /* Can't create something due to it exists */
82 #define ERROR__ALREADY_EXISTS (ERROR__IO+33)
83 
84 /* Problems while parsing some text file */
85 #define ERROR__TEXT_PARSING (ERROR__IO+34)
86 
87 /* popen call failed */
88 #define ERROR__POPEN (ERROR__IO+35)
89 
90 /* some operation over Int8 data on not-64-compatible platform */
91 #define ERROR__INT8_USAGE (ERROR__IO+36)
92 
93 /* unexpected character */
94 #define ERROR__BAD_CHAR (ERROR__IO+37)
95 
96 /* too long object (name, string, file etc) */
97 #define ERROR__TOO_LONG (ERROR__IO+38)
98 
99 /* bad syntax for expected value (text or string parsing) */
100 #define ERROR__BAD_SYNTAX (ERROR__IO+39)
101 
102 /* illegal operation (reading of WRONLY object or writing of RDONLY one) */
103 #define ERROR__ILLEGAL_OPER (ERROR__IO+40)
104 
105 /* error returned by mutex APIs */
106 #define ERROR__MUTEX (ERROR__IO+41)
107 
108 
109 /* error codes for Memory function range 200 to 299 */
110 #define ERROR__MEM 200
111 
112 /* Can not allocate memory successfully */
113 #define ERROR__ALLOC (ERROR__MEM+1)
114 
115 /* Can not free memory successfully */
116 #define ERROR__FREE (ERROR__MEM+2)
117 
118 /* Bad pointer's value */
119 #define ERROR__NULL (ERROR__MEM+3)
120 
121 /* Index is out of range */
122 #define ERROR__ARRAY_BOUNDS (ERROR__MEM+4)
123 
124 /* Some parameter (not pointer) has bad value */
125 #define ERROR__MISMATCH (ERROR__MEM+5)
126 
127 /* An object is not build properly and some fields need initialization */
128 #define ERROR__NO_INIT (ERROR__MEM+6)
129 
130 /* Usually string with first char == '\0' */
131 #define ERROR__EMPTY (ERROR__MEM+7)
132 
133 /* mmap() call is not success */
134 #define ERROR__MMAP_FAILED (ERROR__MEM+8)
135 
136 /* Data are present but they are too short; not enough data */
137 #define ERROR__SHORT_DATA (ERROR__MEM+9)
138 
139 /* Some data does not have an expected format */
140 #define ERROR__BAD_FORMAT (ERROR__MEM+10)
141 
142 /* Some data container can't be extented by new item(s) for some
143  reason. */
144 #define ERROR__CANT_EXTEND (ERROR__MEM+11)
145 
146 
147 /* error codes for Math range 300 to 399 */
148 #define ERROR__MATH 300
149 
150 /* Input numeric parameter has not proper value */
151 #define ERROR__BOUNDS (ERROR__MATH+1)
152 
153 /* Numeric parameter can't be negative */
154 #define ERROR__NEGATIVE_NUMBER (ERROR__MATH+2)
155 
156 /* Numeric parameter must be greater than zero */
157 #define ERROR__NON_POSITIVE_NUMBER (ERROR__MATH+3)
158 
159 
160 /* special error codes for FAT (File Access Tools) range 400 to 499 */
161 #define ERROR__FAT 400
162 #define ERROR__BAD_BLOCK_PARAMS (ERROR__FAT+1)
163 #define ERROR__BAD_PATCH_PARAMS (ERROR__FAT+2)
164 #define ERROR__ZERO_COUNT (ERROR__FAT+3)
165 #define ERROR__OUT_OF_RANGE (ERROR__FAT+4)
166 #define ERROR__NON_NATURAL_BLOCKS_COUNT (ERROR__FAT+5)
167 #define ERROR__BAD_MOD_NAME (ERROR__FAT+6)
168 #define ERROR__AUTODETECT_DISABLED (ERROR__FAT+7)
169 
170 
171 /* error codes for X-Window operations range 500 to 599 */
172 #define ERROR__X 500
173 
174 /*-----------------------------------------------------------*
175  * Equivalence of X errors
176  * So, (XErrorCode+ERROR__X) will be one of the next error
177  * see also XGEnv::x_error() in `mix1/xgb/XGEnv.H'
178  *-----------------------------------------------------------*/
179 
180 /* bad request code */
181 #define ERROR__X_BAD_REQUEST (ERROR__X+1)
182 
183 /* int parameter out of range */
184 #define ERROR__X_BAD_VALUE (ERROR__X+2)
185 
186 /* parameter not a Window */
187 #define ERROR__X_BAD_WINDOW (ERROR__X+3)
188 
189 /* parameter not a Pixmap */
190 #define ERROR__X_BAD_PIXMAP (ERROR__X+4)
191 
192 /* parameter not an Atom */
193 #define ERROR__X_BAD_ATOM (ERROR__X+5)
194 
195 /* parameter not a Cursor */
196 #define ERROR__X_BAD_CURSOR (ERROR__X+6)
197 
198 /* parameter not a Font */
199 #define ERROR__X_BAD_FONT (ERROR__X+7)
200 
201 /* parameter mismatch */
202 #define ERROR__X_BAD_MATCH (ERROR__X+8)
203 
204 /* parameter not a Pixmap or Window */
205 #define ERROR__X_BAD_DRAWABLE (ERROR__X+9)
206 
207 /* depending on context:
208  - key/button already grabbed
209  - attempt to free an illegal
210  cmap entry
211  - attempt to store into a read-only
212  color map entry.
213  - attempt to modify the access control
214  list from other than the local host. */
215 #define ERROR__X_BAD_ACCESS (ERROR__X+10)
216 
217 /* insufficient resources */
218 #define ERROR__X_BAD_ALLOC (ERROR__X+11)
219 
220 /* no such colormap */
221 #define ERROR__X_BAD_COLOR (ERROR__X+12)
222 
223 /* parameter not a GC */
224 #define ERROR__X_BAD_GC (ERROR__X+13)
225 
226 /* choice not in range or already used */
227 #define ERROR__X_BAD_IDCHOICE (ERROR__X+14)
228 
229 /* font or color name doesn't exist */
230 #define ERROR__X_BAD_NAME (ERROR__X+15)
231 
232 /* Request length incorrect */
233 #define ERROR__X_BAD_LENGTH (ERROR__X+16)
234 
235 /* server is defective */
236 #define ERROR__X_BAD_IMPLEMENTATION (ERROR__X+17)
237 
238 #define ERROR__X_GET_GC_VALUES (ERROR__X+18)
239 #define ERROR__X_BAD_FONT_NAME (ERROR__X+19)
240 #define ERROR__X_NO_SUCH_FONT (ERROR__X+20)
241 #define ERROR__X_BAD_PALETTE (ERROR__X+21)
242 #define ERROR__X_ZERO_SIZE (ERROR__X+22)
243 #define ERROR__X_BAD_DISPLAY (ERROR__X+23)
244 
245 /* error codes for RadioGroup operations range 600 to 649 */
246 #define ERROR__RG 600
247 #define ERROR__RG_BAD_INDEX (ERROR__RG+1)
248 #define ERROR__RG_BAD_PARAMETERS (ERROR__RG+2)
249 #define ERROR__RG_BAD_MEMBER_PTR (ERROR__RG+3)
250 #define ERROR__RG_BAD_ALLOC (ERROR__RG+4)
251 #define ERROR__RG_NO_STATES (ERROR__RG+5)
252 
253 /* error codes for DynAr class range 650 to 699 */
254 #define ERROR__DA 650
255 #define ERROR__DA_UNEXTENDABLE_EMPTY (ERROR__DA+1)
256 #define ERROR__DA_ZERO_UNIT (ERROR__DA+2)
257 #define ERROR__DA_OWERFLOW (ERROR__DA+3)
258 #define ERROR__DA_EMPTY_ARRAY (ERROR__DA+4)
259 #define ERROR__DA_OUT_OF_RANGE (ERROR__DA+5)
260 #define ERROR__DA_SIZE_MISMATCH (ERROR__DA+6)
261 #define ERROR__DA_BAD_VALUE (ERROR__DA+7)
262 #define ERROR__DA_BAD_ALLOC (ERROR__DA+8)
263 #define ERROR__DA_UNKNOWN_KEY (ERROR__DA+9)
264 #define ERROR__DA_KNOWN_KEY (ERROR__DA+10)
265 
266 /* error codes for DataBase library range 700 to 749 */
267 #define ERROR__DB 700
268 #define ERROR__DB_TYPE_MATCH (ERROR__DB+1)
269 #define ERROR__DB_BAD_MODE (ERROR__DB+2)
270 #define ERROR__DB_NO_DTBSPTR (ERROR__DB+3)
271 #define ERROR__DB_BOUNDS (ERROR__DB+4)
272 #define ERROR__DB_TYPE_CONVERTION (ERROR__DB+5)
273 #define ERROR__DB_BAD_FILENAME (ERROR__DB+6)
274 #define ERROR__DB_DMN_NOT_FOUND (ERROR__DB+7)
275 #define ERROR__DB_BAD_MAGIC (ERROR__DB+8)
276 #define ERROR__DB_FMT_MISMATCH (ERROR__DB+9)
277 #define ERROR__DB_TT_NOT_FOUND (ERROR__DB+10)
278 #define ERROR__DB_DIM_MISMATCH (ERROR__DB+11)
279 
280 /* Sharing violation due to existant r/o locks */
281 #define ERROR__DB_RO_LOCKED (ERROR__DB+12)
282 
283 /* Sharing violation due to existant r/w locks */
284 #define ERROR__DB_RW_LOCKED (ERROR__DB+13)
285 
286 /* Line is not found as loaded, but it have to be */
287 #define ERROR__DB_LINE_NOT_LOADED (ERROR__DB+14)
288 
289 /* Trying to fetch empty or absent data item from data cluster */
290 #define ERROR__DB_BAD_SLOT_FETCH (ERROR__DB+15)
291 
292 /* Item is not found - either trying to read from -1, or there are not
293  so many lines in the db_table */
294 #define ERROR__DB_BAD_ITEM (ERROR__DB+16)
295 
296 /* Db table is not modifiable */
297 #define ERROR__DB_PROTECTED (ERROR__DB+17)
298 
299 /* Db lock was lost sometimes ago */
300 #define ERROR__DB_LOST_LOCK (ERROR__DB+18)
301 
302 
303 /* error codes for Trace related operations range 750 to 799 */
304 #define ERROR__TRACE 750
305 #define ERROR__LOCKED_TRACE (ERROR__TRACE+1)
306 #define ERROR__BAD_TAID (ERROR__TRACE+2)
307 #define ERROR__TAID_PROHIBITED (ERROR__TRACE+3)
308 #define ERROR__BAD_TRACE_FORMAT (ERROR__TRACE+4)
309 #define ERROR__SHORT_HEADER (ERROR__TRACE+5)
310 #define ERROR__TAID_TYPE (ERROR__TRACE+6)
311 #define ERROR__ONLY_REAL4 (ERROR__TRACE+7)
312 
313 
314 /* error codes for Z* library range 800 to 849 */
315 #define ERROR__Z 800
316 
317 /* No Equivalent Class with such id */
318 #define ERROR__Z_BAD_ECID (ERROR__Z+1)
319 
320 /* Internal realization bug */
321 #define ERROR__Z_NULL_MEMBER (ERROR__Z+2)
322 
323 /* Negative coordinate (not implemented yet) */
324 #define ERROR__Z_BAD_COORD (ERROR__Z+3)
325 
326 /* Empty Equivalent Class */
327 #define ERROR__Z_NO_MEMBERS (ERROR__Z+4)
328 
329 /* No object with such index */
330 #define ERROR__Z_BAD_INDEX (ERROR__Z+5)
331 
332 /* 1) More than one object has unique property
333  2) Scale can not be displayed in two different dimensions */
334 #define ERROR__Z_UNCERTAIN (ERROR__Z+6)
335 
336 /* Zero range of units or coordinates (bounds, traces) */
337 #define ERROR__Z_ZERO_RANGE (ERROR__Z+7)
338 
339 /* Bad value in numeric argument */
340 #define ERROR__Z_BAD_VALUE (ERROR__Z+8)
341 
342 /* This group does not have linked one */
343 #define ERROR__Z_NOT_LINKED (ERROR__Z+9)
344 
345 /* Trying to link group to itself */
346 #define ERROR__Z_LINK_TO_ITSELF (ERROR__Z+10)
347 
348 /* Object does not have natural slave of pointed dimension */
349 #define ERROR__Z_NO_DIMENSION (ERROR__Z+11)
350 
351 /* There is not palette with pointed name */
352 #define ERROR__Z_NO_PALETTE (ERROR__Z+12)
353 
354 /* There are not colors in palette */
355 #define ERROR__Z_EMPTY_PALETTE (ERROR__Z+13)
356 
357 /* Index of color is out of palette range */
358 #define ERROR__Z_BAD_COLOR_INDEX (ERROR__Z+14)
359 
360 /* Can not get image by XGetImage */
361 #define ERROR__Z_BAD_GET_IMAGE (ERROR__Z+15)
362 
363 
364 /* error codes for trace mapping modules range 850 to 899 */
365 #define ERROR__TM 850
366 
367 /* Index of trace is out of range */
368 #define ERROR__TM_OUT_OF_RANGE (ERROR__TM+1)
369 
370 /* Size of file is not equal to integer count of traces */
371 #define ERROR__TM_ODD_SIZE (ERROR__TM+2)
372 
373 /* Needed access to trace map is denied */
374 #define ERROR__TM_ACCESS_DENIED (ERROR__TM+3)
375 
376 /* Bad format of trace file */
377 #define ERROR__TM_BAD_TRACE_FILE (ERROR__TM+4)
378 
379 
380 /* error codes for PEP module range 900 to 949 */
381 #define ERROR__PEP 900
382 #define ERROR__PEP_UNKNOWN_TYPE (ERROR__PEP+1)
383 #define ERROR__PEP_UNKNOWN_PARAM (ERROR__PEP+2)
384 #define ERROR__PEP_TYPE_MISMATCH (ERROR__PEP+3)
385 #define ERROR__PEP_VOID_CONNECTION (ERROR__PEP+4)
386 /* Can not find [connection protocol] pair */
387 #define ERROR__PEP_NOT_FOUND (ERROR__PEP+5)
388 /* Can not get unique key for IPC */
389 #define ERROR__PEP_IPC_KEY (ERROR__PEP+6)
390 /* Can not get IPC handle (semaphores, shared memory or messages) */
391 #define ERROR__PEP_IPC_GET (ERROR__PEP+7)
392 /* Can not lock/unlock semaphore */
393 #define ERROR__PEP_SEM_LOCK (ERROR__PEP+8)
394 /* Something in handle is bad */
395 #define ERROR__PEP_DAMAGED (ERROR__PEP+9)
396 /* Can not attach shared memory page */
397 #define ERROR__PEP_IPC_ATTACH (ERROR__PEP+10)
398 /* Trying to access element out of allowed range */
399 #define ERROR__PEP_OUT_OF_RANGE (ERROR__PEP+11)
400 /* Trying to use property of shared object by local one */
401 #define ERROR__PEP_NOT_IPC (ERROR__PEP+12)
402 /* Unsuccessful stat of an IPC service */
403 #define ERROR__PEP_IPC_STAT (ERROR__PEP+13)
404 /* Too long name of parameter */
405 #define ERROR__PEP_TOO_LONG_NAME (ERROR__PEP+14)
406 
407 /* error codes for different IPC facilities range 950 to 999 */
408 #define ERROR__IPC 950
409 #define ERROR__IPC_RANGE (ERROR__IPC+1)
410 #define ERROR__IPC_GET (ERROR__IPC+2)
411 #define ERROR__IPC_LOCK (ERROR__IPC+3)
412 #define ERROR__IPC_UNLOCK (ERROR__IPC+4)
413 
414 
415 /* error codes for 3D model modules range 1000 to 1200 */
416 #define ERROR__3DM 1000
417 
418 #define ERROR__3DM_BAD_MODEL (ERROR__3DM+1)
419 #define ERROR__3DM_BAD_SPLINE (ERROR__3DM+2)
420 #define ERROR__3DM_BAD_BORDER (ERROR__3DM+3)
421 #define ERROR__3DM_BAD_BODY (ERROR__3DM+4)
422 #define ERROR__3DM_BAD_POINT (ERROR__3DM+5)
423 #define ERROR__3DM_PM_BAD_RECEIVER (ERROR__3DM+6)
424 #define ERROR__3DM_BAD_ID (ERROR__3DM+7)
425 
426 /*
427  Expexted DB structure appeared to be corrupted
428  (i.e. body isn't correctly written)
429  */
430 #define ERROR__3DM_BAD_DB_TABLE_STRUCTURE (ERROR__3DM+8)
431 
432 /* Some sequence (splines, points) couldn't be interpreted */
433 #define ERROR__3DM_BAD_SEQUENCE (ERROR__3DM+9)
434 
435 /* Points, that should be different, appeared to coinside */
436 #define ERROR__3DM_PM_COINCIDED_POINTS (ERROR__3DM+10)
437 
438 /* Errors of the model with plain borders,
439  raytracing and vsp-cdp of this model */
440 #define ERROR__3DM_PM 1050
441 
442 /* Error while corellation of 1D model to 3D */
443 #define ERROR__3DM_PM_CORELLATE_ERROR (ERROR__3DM_PM+1)
444 
445 #define ERROR__3DM_PM_BAD_ANGLE (ERROR__3DM_PM+2)
446 #define ERROR__3DM_PM_BAD_RAY (ERROR__3DM_PM+3)
447 #define ERROR__3DM_PM_BAD_CONTAINER (ERROR__3DM_PM+4)
448 
449 /* No elements in a structure, that shouldn't be empty */
450 #define ERROR__3DM_PM_NO_ELEMENTS (ERROR__3DM_PM+5)
451 
452 /* Structure isn't ready for desired operation */
453 #define ERROR__3DM_PM_NOT_READY (ERROR__3DM_PM+6)
454 
455 /* Bad time-depth interpolation segment (probably before first-after last) */
456 #define ERROR__3DM_PM_BAD_SEGMENT (ERROR__3DM_PM+7)
457 
458 /* В стадии разработки - дерева всякие/ #define ERROR__TREE 1100 /* 3D-2D графика (Open GL)*/ #define ERROR__GL 1200 #define ERROR__GL_BAD_VI (ERROR__GL+1) /* Rainbow hard key SentinelSuperPro communication API) from 1300 to 1399 */ #define ERROR__SP 1300 #define ERROR__SP_INVALID_FUNCTION_CODE (ERROR__SP+1) /* Packet must be inited (formatted) first. */ #define ERROR__SP_INVALID_PACKET (ERROR__SP+2) /* Key is not found. */ #define ERROR__SP_UNIT_NOT_FOUND (ERROR__SP+3) /* Trying to get value of algorithm (write-only) cell. */ #define ERROR__SP_ACCESS_DENIED (ERROR__SP+4) #define ERROR__SP_INVALID_MEMORY_ADDRESS (ERROR__SP+5) #define ERROR__SP_INVALID_ACCESS_CODE (ERROR__SP+6) #define ERROR__SP_PORT_IS_BUSY (ERROR__SP+7) #define ERROR__SP_WRITE_NOT_READY (ERROR__SP+8) #define ERROR__SP_NO_PORT_FOUND (ERROR__SP+9) #define ERROR__SP_ALREADY_ZERO (ERROR__SP+10) #define ERROR__SP_DRIVER_OPEN_ERROR (ERROR__SP+11) #define ERROR__SP_DRIVER_NOT_INSTALLED (ERROR__SP+12) #define ERROR__SP_IO_COMMUNICATIONS_ERROR (ERROR__SP+13) #define ERROR__SP_PACKET_TOO_SMALL (ERROR__SP+15) #define ERROR__SP_INVALID_PARAMETER (ERROR__SP+16) #define ERROR__SP_MEM_ACCESS_ERROR (ERROR__SP+17) #define ERROR__SP_VERSION_NOT_SUPPORTED (ERROR__SP+18) #define ERROR__SP_OS_NOT_SUPPORTED (ERROR__SP+19) #define ERROR__SP_QUERY_TOO_LONG (ERROR__SP+20) #define ERROR__SP_INVALID_COMMAND (ERROR__SP+21) #define ERROR__SP_MEM_ALIGNMENT_ERROR (ERROR__SP+29) #define ERROR__SP_DRIVER_IS_BUSY (ERROR__SP+30) #define ERROR__SP_PORT_ALLOCATION_FAILURE (ERROR__SP+31) #define ERROR__SP_PORT_RELEASE_FAILURE (ERROR__SP+32) #define ERROR__SP_ACQUIRE_PORT_TIMEOUT (ERROR__SP+39) #define ERROR__SP_SIGNAL_NOT_SUPPORTED (ERROR__SP+42) #define ERROR__SP_UNKNOWN_MACHINE (ERROR__SP+44) #define ERROR__SP_SYS_API_ERROR (ERROR__SP+45) #define ERROR__SP_UNIT_IS_BUSY (ERROR__SP+46) #define ERROR__SP_INVALID_PORT_TYPE (ERROR__SP+47) #define ERROR__SP_INVALID_MACH_TYPE (ERROR__SP+48) #define ERROR__SP_INVALID_IRQ_MASK (ERROR__SP+49) #define ERROR__SP_INVALID_CONT_METHOD (ERROR__SP+50) #define ERROR__SP_INVALID_PORT_FLAGS (ERROR__SP+51) #define ERROR__SP_INVALID_LOG_PORT_CFG (ERROR__SP+52) #define ERROR__SP_INVALID_OS_TYPE (ERROR__SP+53) #define ERROR__SP_INVALID_LOG_PORT_NUM (ERROR__SP+54) #define ERROR__SP_INVALID_ROUTER_FLGS (ERROR__SP+56) /* API is not initialized. */ #define ERROR__SP_INIT_NOT_CALLED (ERROR__SP+57) /* Kernel module is not installed or loaded. */ #define ERROR__SP_DRVR_TYPE_NOT_SUPPORTED (ERROR__SP+58) #define ERROR__SP_FAIL_ON_DRIVER_COMM (ERROR__SP+59) /* License problems (from 1400 to 1450) */ #define ERROR__LIC 1400 /* File with license number is not found */ #define ERROR__LIC_FILE_NOT_FOUND (ERROR__LIC+1) /* File with license number is not found */ #define ERROR__LIC_HARD_KEY_NOT_FOUND (ERROR__LIC+2) /* No license for this CPU */ #define ERROR__LIC_CPU_RESTRICT (ERROR__LIC+3) /* Maximum number of users is reached */ #define ERROR__LIC_USER_RESTRICT (ERROR__LIC+4) /* License is expired */ #define ERROR__LIC_DATE_RESTRICT (ERROR__LIC+5) /* Computer's timer is sick */ #define ERROR__LIC_FAKE_DATE (ERROR__LIC+6) /* Technical problems with session register management (IPC mainly) */ #define ERROR__LIC_SESSION_MANAGER (ERROR__LIC+7) /* Session is lost due to session register is broken or does not exist */ #define ERROR__LIC_LOST_SESSION (ERROR__LIC+8) /* Process can't create new session due to its limit is reached */ #define ERROR__LIC_TOO_MANY_SESSIONS (ERROR__LIC+9) /* License number is broken (checksum failed) */ #define ERROR__LIC_NUMBER_BROKEN (ERROR__LIC+10) /* Plugged key doesn't have expected serial number */ #define ERROR__LIC_KEY_RESTRICT (ERROR__LIC+11) /* Given license does not fit for this product */ #define ERROR__LIC_BAD_PRODUCT (ERROR__LIC+12) /* No hardkey hardware is supported by this version */ #define ERROR__LIC_HKEY_NOT_SUPPORTED (ERROR__LIC+13) /* License number is invalid (generated for dead key on platform where hostid is not supported) */ #define ERROR__LIC_NUMBER_INVALID (ERROR__LIC+14) /* Program is too new for given license (when upgrade of software is performed without upgrade of start date of license) */ #define ERROR__LIC_ILLEGAL_UPGRADE (ERROR__LIC+15) /* License file is empty and must be replaced by valid one. */ #define ERROR__LIC_DUMMY_LICENSE (ERROR__LIC+16) #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ const char* ErrCodeMsg (ErrCode ec); #ifdef __cplusplus }; #endif /* __cplusplus */ #endif /* _ERROR_H */ /* Melnikov George Yu. 4-Jun-1999 */ /* Melnikov George Yu. 9-Nov-1999 */ /* Melnikov George Yu. 28-Jan-2000 */ */
459 #define ERROR__TREE 1100
460 
461 /* 3D-2D графика (Open GL)*/
462 #define ERROR__GL 1200
463 #define ERROR__GL_BAD_VI (ERROR__GL+1)
464 
465 /* Rainbow hard key SentinelSuperPro communication API) from 1300 to 1399 */
466 #define ERROR__SP 1300
467 #define ERROR__SP_INVALID_FUNCTION_CODE (ERROR__SP+1)
468 
469 /* Packet must be inited (formatted) first. */
470 #define ERROR__SP_INVALID_PACKET (ERROR__SP+2)
471 
472 /* Key is not found. */
473 #define ERROR__SP_UNIT_NOT_FOUND (ERROR__SP+3)
474 
475 /* Trying to get value of algorithm (write-only) cell. */
476 #define ERROR__SP_ACCESS_DENIED (ERROR__SP+4)
477 
478 #define ERROR__SP_INVALID_MEMORY_ADDRESS (ERROR__SP+5)
479 #define ERROR__SP_INVALID_ACCESS_CODE (ERROR__SP+6)
480 #define ERROR__SP_PORT_IS_BUSY (ERROR__SP+7)
481 #define ERROR__SP_WRITE_NOT_READY (ERROR__SP+8)
482 #define ERROR__SP_NO_PORT_FOUND (ERROR__SP+9)
483 #define ERROR__SP_ALREADY_ZERO (ERROR__SP+10)
484 #define ERROR__SP_DRIVER_OPEN_ERROR (ERROR__SP+11)
485 #define ERROR__SP_DRIVER_NOT_INSTALLED (ERROR__SP+12)
486 #define ERROR__SP_IO_COMMUNICATIONS_ERROR (ERROR__SP+13)
487 #define ERROR__SP_PACKET_TOO_SMALL (ERROR__SP+15)
488 #define ERROR__SP_INVALID_PARAMETER (ERROR__SP+16)
489 #define ERROR__SP_MEM_ACCESS_ERROR (ERROR__SP+17)
490 #define ERROR__SP_VERSION_NOT_SUPPORTED (ERROR__SP+18)
491 #define ERROR__SP_OS_NOT_SUPPORTED (ERROR__SP+19)
492 #define ERROR__SP_QUERY_TOO_LONG (ERROR__SP+20)
493 #define ERROR__SP_INVALID_COMMAND (ERROR__SP+21)
494 #define ERROR__SP_MEM_ALIGNMENT_ERROR (ERROR__SP+29)
495 #define ERROR__SP_DRIVER_IS_BUSY (ERROR__SP+30)
496 #define ERROR__SP_PORT_ALLOCATION_FAILURE (ERROR__SP+31)
497 #define ERROR__SP_PORT_RELEASE_FAILURE (ERROR__SP+32)
498 #define ERROR__SP_ACQUIRE_PORT_TIMEOUT (ERROR__SP+39)
499 #define ERROR__SP_SIGNAL_NOT_SUPPORTED (ERROR__SP+42)
500 #define ERROR__SP_UNKNOWN_MACHINE (ERROR__SP+44)
501 #define ERROR__SP_SYS_API_ERROR (ERROR__SP+45)
502 #define ERROR__SP_UNIT_IS_BUSY (ERROR__SP+46)
503 #define ERROR__SP_INVALID_PORT_TYPE (ERROR__SP+47)
504 #define ERROR__SP_INVALID_MACH_TYPE (ERROR__SP+48)
505 #define ERROR__SP_INVALID_IRQ_MASK (ERROR__SP+49)
506 #define ERROR__SP_INVALID_CONT_METHOD (ERROR__SP+50)
507 #define ERROR__SP_INVALID_PORT_FLAGS (ERROR__SP+51)
508 #define ERROR__SP_INVALID_LOG_PORT_CFG (ERROR__SP+52)
509 #define ERROR__SP_INVALID_OS_TYPE (ERROR__SP+53)
510 #define ERROR__SP_INVALID_LOG_PORT_NUM (ERROR__SP+54)
511 #define ERROR__SP_INVALID_ROUTER_FLGS (ERROR__SP+56)
512 
513 /* API is not initialized. */
514 #define ERROR__SP_INIT_NOT_CALLED (ERROR__SP+57)
515 
516 /* Kernel module is not installed or loaded. */
517 #define ERROR__SP_DRVR_TYPE_NOT_SUPPORTED (ERROR__SP+58)
518 
519 #define ERROR__SP_FAIL_ON_DRIVER_COMM (ERROR__SP+59)
520 
521 
522 /* License problems (from 1400 to 1450) */
523 #define ERROR__LIC 1400
524 
525 /* File with license number is not found */
526 #define ERROR__LIC_FILE_NOT_FOUND (ERROR__LIC+1)
527 
528 /* File with license number is not found */
529 #define ERROR__LIC_HARD_KEY_NOT_FOUND (ERROR__LIC+2)
530 
531 /* No license for this CPU */
532 #define ERROR__LIC_CPU_RESTRICT (ERROR__LIC+3)
533 
534 /* Maximum number of users is reached */
535 #define ERROR__LIC_USER_RESTRICT (ERROR__LIC+4)
536 
537 /* License is expired */
538 #define ERROR__LIC_DATE_RESTRICT (ERROR__LIC+5)
539 
540 /* Computer's timer is sick */
541 #define ERROR__LIC_FAKE_DATE (ERROR__LIC+6)
542 
543 /* Technical problems with session register management (IPC mainly) */
544 #define ERROR__LIC_SESSION_MANAGER (ERROR__LIC+7)
545 
546 /* Session is lost due to session register is broken or does not exist */
547 #define ERROR__LIC_LOST_SESSION (ERROR__LIC+8)
548 
549 /* Process can't create new session due to its limit is reached */
550 #define ERROR__LIC_TOO_MANY_SESSIONS (ERROR__LIC+9)
551 
552 /* License number is broken (checksum failed) */
553 #define ERROR__LIC_NUMBER_BROKEN (ERROR__LIC+10)
554 
555 /* Plugged key doesn't have expected serial number */
556 #define ERROR__LIC_KEY_RESTRICT (ERROR__LIC+11)
557 
558 /* Given license does not fit for this product */
559 #define ERROR__LIC_BAD_PRODUCT (ERROR__LIC+12)
560 
561 /* No hardkey hardware is supported by this version */
562 #define ERROR__LIC_HKEY_NOT_SUPPORTED (ERROR__LIC+13)
563 
564 /* License number is invalid (generated for dead key on platform where
565  hostid is not supported) */
566 #define ERROR__LIC_NUMBER_INVALID (ERROR__LIC+14)
567 
568 /* Program is too new for given license (when upgrade of software is
569  performed without upgrade of start date of license) */
570 #define ERROR__LIC_ILLEGAL_UPGRADE (ERROR__LIC+15)
571 
572 /* License file is empty and must be replaced by valid one. */
573 #define ERROR__LIC_DUMMY_LICENSE (ERROR__LIC+16)
574 
575 
576 #ifdef __cplusplus
577 extern "C" {
578 #endif /* __cplusplus */
579 
580  const char* ErrCodeMsg (ErrCode ec);
581 
582 #ifdef __cplusplus
583 };
584 #endif /* __cplusplus */
585 
586 
587 #endif /* _ERROR_H */
588 /* Melnikov George Yu. 4-Jun-1999 */
589 /* Melnikov George Yu. 9-Nov-1999 */
590 /* Melnikov George Yu. 28-Jan-2000 */