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 */
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 */