CN107807884A - A kind of method of modularization management error code - Google Patents

A kind of method of modularization management error code Download PDF

Info

Publication number
CN107807884A
CN107807884A CN201711083448.4A CN201711083448A CN107807884A CN 107807884 A CN107807884 A CN 107807884A CN 201711083448 A CN201711083448 A CN 201711083448A CN 107807884 A CN107807884 A CN 107807884A
Authority
CN
China
Prior art keywords
error code
function
module
error
registration function
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201711083448.4A
Other languages
Chinese (zh)
Other versions
CN107807884B (en
Inventor
梁炜平
季统凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
G Cloud Technology Co Ltd
Original Assignee
G Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by G Cloud Technology Co Ltd filed Critical G Cloud Technology Co Ltd
Priority to CN201711083448.4A priority Critical patent/CN107807884B/en
Publication of CN107807884A publication Critical patent/CN107807884A/en
Application granted granted Critical
Publication of CN107807884B publication Critical patent/CN107807884B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging
    • G06F11/366Software debugging using diagnostics

Abstract

The present invention relates to technical field of software development, particularly a kind of method of modularization management error code.The method of the present invention is in father's module, defines error code storage container, error code registration function and error code function reading;Error code registration function and error code function reading have automatic identification error code said module ability;Then, error code Register, automatic call error code registration function are defined in each submodule;When the operation layer of submodule need throw exception when, submodule call error code function reading, the error codes of needs is got, for exception throws.Error code is automatically classified into each submodule by the present invention to be managed, and solves the problems, such as that error code is difficult to safeguard, the system that can be applied to modular multi-person synergy exploitation.

Description

A kind of method of modularization management error code
Technical field
The present invention relates to technical field of software development, particularly a kind of method of modularization management error code.
Technical background
In the abnormal framework of system software, error code by this means of Naming conventions, discriminating module, business, function, Numbering.But often due to carelessness causes the name of error code to become random without specification is observed.It is wrong in multi-person synergy exploitation The concentration of error code can bring problems with:
1st, multi-person synergy is developed, and modification conflict easily occurs;
2nd, the modification of a module can influence all modules, when the error code of a module does not follow Naming conventions, lead Cause all modules unforeseen mistake all occur, needed when increasing error code newly meticulously, it is very inconvenient;
3rd, error code is left concentratedly, can not judge whether an error code refer to by other modules, it is difficult to modify, Delete.
The content of the invention
Present invention solves the technical problem that being to provide a kind of method of modularization management error code, solves wrong code collection It is middle to deposit a series of problems brought.
The present invention solve above-mentioned technical problem technical scheme be:
Described method is in father's module, defines error code storage container, error code registration function and error code reading letter Number;Error code registration function and error code function reading have automatic identification error code said module ability;Then, in every height Module definition error code Register, automatic call error code registration function;When the operation layer of submodule need throw exception when, Submodule call error code function reading, the error code of needs is got, for exception throws.
The error code storage container is a Hash table, and its field includes error code said module, the affiliated industry of error code Business, the error code institute function of dominant, error code numbering, error code content text.
The error code registration function, its parameter include the affiliated business of error code, the error code institute function of dominant, error code and compiled Number, error code content text, error code registration function obtains error code said module by capturing the information in current thread, These information are saved in error code storage container.
The error code function reading, its parameter include the affiliated business of error code, the error code institute function of dominant, error code and compiled Number, error code function reading obtains error code said module by capturing the information in current thread, using these information from mistake Error code corresponding to being taken out in error code storage container.
The error code Register, it have recorded whole error codes of current sub-block, when system starts, Suo Youzi The automatic call error code registration function of error code Register of module, the automatic division module of error code is stored in error code storage Container.
The operation of error code is encapsulated in father's module by the present invention, and all submodules are all called with a code, reach system One management, although using with a code, due to father's module can automatic identification submodule, so each submodule can only be grasped Make the error code of oneself module, reach the isolation between module.Error code is automatically classified into each submodule middle pipe by the present invention Reason, solves the problems, such as that error code is difficult to safeguard, the system that can be applied to modular multi-person synergy exploitation.
Brief description of the drawings
The present invention is further described below in conjunction with the accompanying drawings:
Fig. 1 is flow chart of the method for the present invention.
Embodiment
As shown in Figure 1, basic procedure of the invention is as follows:
1st, error code data model is established, code is as follows:
2nd, error code storage container, error code registration function, error code function reading are established in father's module, code is as follows:
3rd, error code Register is defined in submodule, code is as follows:
4th, it is as follows in submodule error code function reading throw exception, code:

Claims (7)

  1. A kind of 1. method of modularization management error code, it is characterised in that:Described method is deposited in father's module, definition error code Storage container, error code registration function and error code function reading;Error code registration function and error code function reading have automatic Identify error code said module ability;Then, error code Register is defined in each submodule, automatic call error code registers letter Number;When the operation layer of submodule need throw exception when, submodule call error code function reading, get the mistakes of needs Code, for exception throws.
  2. 2. according to the method for claim 1, it is characterised in that:
    The error code storage container is a Hash table, and its field includes error code said module, the affiliated business of error code, mistake The error code institute function of dominant, error code numbering, error code content text.
  3. 3. according to the method for claim 1, it is characterised in that:
    The error code registration function, its parameter include the affiliated business of error code, the error code institute function of dominant, error code numbering, mistake Error code content text, error code registration function obtain error code said module, by these by capturing the information in current thread Information is saved in error code storage container.
  4. 4. according to the method for claim 2, it is characterised in that:
    The error code registration function, its parameter include the affiliated business of error code, the error code institute function of dominant, error code numbering, mistake Error code content text, error code registration function obtain error code said module, by these by capturing the information in current thread Information is saved in error code storage container.
  5. 5. according to the method described in any one of Claims 1-4, it is characterised in that:
    The error code function reading, its parameter includes the affiliated business of error code, the error code institute function of dominant, error code numbering, wrong Error code function reading obtains error code said module by capturing the information in current thread, using these information from error code Error code corresponding to being taken out in storage container.
  6. 6. according to the method described in any one of Claims 1-4, it is characterised in that:
    The error code Register, it have recorded whole error codes of current sub-block, when system starts, all submodules The automatic call error code registration function of error code Register, the automatic division module of error code is stored in error code storage hold Device.
  7. 7. according to the method for claim 5, it is characterised in that:
    The error code Register, it have recorded whole error codes of current sub-block, when system starts, all submodules The automatic call error code registration function of error code Register, the automatic division module of error code is stored in error code storage hold Device.
CN201711083448.4A 2017-11-07 2017-11-07 Method for modular management of error codes Active CN107807884B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711083448.4A CN107807884B (en) 2017-11-07 2017-11-07 Method for modular management of error codes

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711083448.4A CN107807884B (en) 2017-11-07 2017-11-07 Method for modular management of error codes

Publications (2)

Publication Number Publication Date
CN107807884A true CN107807884A (en) 2018-03-16
CN107807884B CN107807884B (en) 2021-11-19

Family

ID=61583589

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711083448.4A Active CN107807884B (en) 2017-11-07 2017-11-07 Method for modular management of error codes

Country Status (1)

Country Link
CN (1) CN107807884B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445770A (en) * 2018-10-16 2019-03-08 武汉斗鱼网络科技有限公司 A kind of processing method of error code, device, medium and equipment
CN113328895A (en) * 2021-06-21 2021-08-31 河北幸福消费金融股份有限公司 Error code management system, abnormality positioning method, and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
US20120137180A1 (en) * 2010-11-29 2012-05-31 Hon Hai Precision Industry Co., Ltd. Computing device and system error detection method
CN104199819A (en) * 2014-07-03 2014-12-10 北京思特奇信息技术股份有限公司 WEB system error processing method and device
CN104331367A (en) * 2014-11-12 2015-02-04 浪潮(北京)电子信息产业有限公司 Method and system for exception handling in Java engineering project development
CN107145422A (en) * 2017-03-14 2017-09-08 卡斯柯信号有限公司 A kind of software fault alert detecting method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1996257A (en) * 2006-12-26 2007-07-11 华为技术有限公司 Method and system for monitoring process
US20120137180A1 (en) * 2010-11-29 2012-05-31 Hon Hai Precision Industry Co., Ltd. Computing device and system error detection method
CN104199819A (en) * 2014-07-03 2014-12-10 北京思特奇信息技术股份有限公司 WEB system error processing method and device
CN104331367A (en) * 2014-11-12 2015-02-04 浪潮(北京)电子信息产业有限公司 Method and system for exception handling in Java engineering project development
CN107145422A (en) * 2017-03-14 2017-09-08 卡斯柯信号有限公司 A kind of software fault alert detecting method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
ALECYRUS: ""父进程如何捕获子进程的异常?"", 《HTTPS://WWW.JIANSHU.COM/P/EB2C937FFF7A》 *
VASYL YATSKIV 等: ""Error correction technique based on modular correcting codes"", 《2016 IEEE 36TH INTERNATIONAL CONFERENCE ON ELECTRONICS AND NANOTECHNOLOGY (ELNANO)》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109445770A (en) * 2018-10-16 2019-03-08 武汉斗鱼网络科技有限公司 A kind of processing method of error code, device, medium and equipment
CN109445770B (en) * 2018-10-16 2022-06-17 武汉斗鱼网络科技有限公司 Error code processing method, device, medium and equipment
CN113328895A (en) * 2021-06-21 2021-08-31 河北幸福消费金融股份有限公司 Error code management system, abnormality positioning method, and storage medium
CN113328895B (en) * 2021-06-21 2023-08-29 河北幸福消费金融股份有限公司 Error code management system, abnormality positioning method, and storage medium

Also Published As

Publication number Publication date
CN107807884B (en) 2021-11-19

Similar Documents

Publication Publication Date Title
CA2996960C (en) System for aggregation and prioritization of it asset field values from real-time event logs and method thereof
CN105607960A (en) Repairing method and device of file system directory tree
CN101853387A (en) Stereoscopic warehouse goods checking method and system
CN104216961B (en) A kind of data processing method and device
CN107807884A (en) A kind of method of modularization management error code
CN103793565B (en) Method for rapidly generating netlist
CN106897072A (en) Traffic engineered call method, device and electronic equipment
CN104102734B (en) Method for exhibiting data and system
CN105095518A (en) Data conversion method and device
CN106875084A (en) Patrol and examine later stage task creation method and system
CN105431868B (en) Manage object management system
CN104462082A (en) Data warehouse based medical data integration method and system
CN105446757A (en) Data packet processing method and device
CN105008251A (en) Comparison system, terminal device, server device, comparison method, and program
CN108228664A (en) Unstructured data processing method and processing device
CN105550220B (en) A kind of method and device of the access of heterogeneous system
CN103593447B (en) Data processing method and device applied to database table
CN104657148A (en) Data checking method and data checking device
CN106095914A (en) Unified error blog management method
CN106408156A (en) Flow template recovering method and device
CN105912596A (en) Method and device for operation of databases
CN106557569B (en) Method and device for importing unstructured document based on meta-model
CN115034347A (en) Industrial Internet of things for tracing two-dimensional code data and control method thereof
CN104268277A (en) Data reading method and device for database
CN105868220B (en) Data processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 19 / F, Cloud Computing Center, Chinese Academy of Sciences, No.1 Kehui Road, Songshanhu high tech Industrial Development Zone, Dongguan City, Guangdong Province, 523000

Applicant after: G-CLOUD TECHNOLOGY Co.,Ltd.

Address before: 523808 No. 14 Building, Songke Garden, Songshan Lake Science and Technology Industrial Park, Dongguan City, Guangdong Province

Applicant before: G-CLOUD TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant