/** * 实体通讯错误码定义 */ var ErrorCodeEnum = { Error_Succeed : 0, //date check category Error_DataCheck : 100, //mark the beginning for this category Error_Null : 101, //the error of a null pointer Error_Param : 102, //the error of a illegal parameter Error_Overflow : 103, //The length or range overflow Error_TooSmallBuffer : 104, // buffer too small Error_NotIntegrated : 105, //The package or result is not intergrated //Target being category Error_TargetBeing : 0x200, Error_NoTarget : 0x201, //request target is not exist Error_NoDefine : 0x202, //The class or object no define Error_NotImpl : 0x203, //the method has not implement yet Error_NotExist : 0x204, //not exist Error_Duplication : 0x205, //Duplicate action or object Error_Unregisted : 0x206, //exist but the object has not regist Error_AlreadyExist : 0x207, //already exist Error_MethodNotFound : 0x208, //method does not exist Error_Redirect : 0x209, // redirect indication //Entity state category Error_InvalidState : 0x300, //state is not valid for current call Error_NotInit : 0x301, //The target is not be initial Error_Paused : 0x302, //the access object is in Pause state Error_Stoped : 0x303, //the access object is in Stop state Error_Losted : 0x304, //the access object is in Lost state Error_Closed : 0x305, //opposite side in close state //Framework Task control category Error_TaskControl : 0x400, Error_Pending : 0x401, //The request in not finish Error_Cancel : 0x402, //The process is be cancel by framework Error_Break : 0x403, //The task has interrupt Error_NotMeetCondition : 0x404, //not meat run condition,run cancel Error_NoPrivilege : 0x405, //no privilege Error_MethodSignatureFailed : 0x406,//method signature failed //opposite side action category Error_PeerAction : 0x500, Error_PeerClose : 0x501, //peer close request Error_PeerIgnore : 0x502, //peer did not anwer before the ITransactionContext object release Error_PeerReject : 0x503, //The another side reject the request Error_PeerDelay : 0x504, //The tast can not run right now,will be deley to set time //process fail category Error_Process : 0x600, Error_NetBroken : 0x601, //the network is broken Error_UpdateFailed : 0x602, //system update failed Error_RegistryFailed : 0x603, //registry operation failed Error_IO : 0x604, //IO error(file reading/writing) Error_Readonly : 0x605, //The object can't be edit // ... Error_TimeOut : 0x700, Error_BlockTimeOut : 0x701, //WaitAnswer time out Error_ThreadTimeOut: 0x702, //Max Thread run time Error_QueueTimeOut : 0x703, //Tast wait time out in queue Error_ReplyTimeOut : 0x704, //The system max answer time // ... Error_Debug : 0xf00, Error_Assert: 0xf01, Error_Trace : 0xf02, Error_Bug : 0xf03, //bug detected /* // device error code x define at range 0x00010000 <= x <= 0x0001ffff // Error_Device_Begin = 0x00010000, //...... device error codes goes here Error_Device_End = 0x0001ffff, */ Error_Unrecover : 0x70000000, Error_Resource : 0x70000001, //The system resource ec:memory/handle/space,do not retry,should restart system Error_NewProcess: 0x70000002, //start process failed Error_FailVerify: 0x70000003, //Signature verification failed of entity Error_Block : 0x70000004, //The thread block and the module hold Error_Exception : 0x70000005, //except throw Error_Unexpect : 0x7ffffffe, //the fail reason is not expect Error_IgnoreAll : 0x7fffffff, // for special internal usage only, user dont use this code };