CN114546466A - Error code generation method and device - Google Patents

Error code generation method and device Download PDF

Info

Publication number
CN114546466A
CN114546466A CN202210434900.1A CN202210434900A CN114546466A CN 114546466 A CN114546466 A CN 114546466A CN 202210434900 A CN202210434900 A CN 202210434900A CN 114546466 A CN114546466 A CN 114546466A
Authority
CN
China
Prior art keywords
error code
software
code
processed
layer
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.)
Pending
Application number
CN202210434900.1A
Other languages
Chinese (zh)
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.)
Guangzhou Easefun Information Technology Co ltd
Original Assignee
Guangzhou Easefun Information 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 Guangzhou Easefun Information Technology Co ltd filed Critical Guangzhou Easefun Information Technology Co ltd
Priority to CN202210434900.1A priority Critical patent/CN114546466A/en
Publication of CN114546466A publication Critical patent/CN114546466A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
    • G06F11/079Root cause analysis, i.e. error or fault diagnosis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/126Character encoding
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Computational Linguistics (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Biomedical Technology (AREA)
  • Quality & Reliability (AREA)
  • Artificial Intelligence (AREA)
  • Stored Programmes (AREA)

Abstract

The invention relates to an error code generation method and device, which are used for determining each code layer of software to be processed in layered decoupling after acquiring each software to be processed in a multi-software architecture. Furthermore, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.

Description

Error code generation method and device
Technical Field
The invention relates to the technical field of software development, in particular to an error code generation method and device.
Background
Software development is the process of building a software system or software parts in a system according to user requirements, in which code is an important component. Taking Development of mobile phone Software (APP) as an example, APP codes serve as core parts and are integrated into an SDK (Software Development Kit Software tool Development Kit) to be provided for the APPs to use together. Such a design framework with high multiplexing of multiple APP bottom layers is called a multiple APP architecture.
When the software can not operate normally, different error conditions need to be distinguished, and the required code is an error code. The traditional writing mode of the error code is to write an error code at the position of the code where the exception occurs to indicate an exception condition, and the error code can be used for guiding the occurrence of any prompt of the software to inform a user of the exception condition on one hand, and providing information for a developer to handle various exception conditions and debug on the other hand. However, each piece of software has an independent set of error codes, and when multiple pieces of software need to be maintained in a multi-software architecture like a multi-APP architecture, multiple sets of error codes need to be maintained, which increases the cost and difficulty of maintenance.
Disclosure of Invention
Therefore, it is necessary to provide an error code generation method and apparatus for overcoming the disadvantages that when a plurality of pieces of software in a multi-software architecture need to be maintained, a plurality of sets of error codes need to be maintained, which increases the cost and difficulty of maintenance.
An error code generation method, comprising the steps of:
acquiring each piece of software to be processed in a multi-software architecture;
determining each code layer of the software to be processed in hierarchical decoupling;
writing a first error code for the software to be processed, and writing a second error code for the selected code layer;
and writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
According to the error code generation method, after the to-be-processed software in the multi-software architecture is obtained, the code layers of the to-be-processed software in the layered decoupling are determined. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
In one embodiment, the code layer includes a base layer, a module layer, and a service layer.
In one embodiment, the selected code layers include a module layer and a service layer.
In one embodiment, the process of writing a second error code for a selected code layer includes the steps of:
and respectively writing a second error code for each specific service in the code layer corresponding to the software to be processed.
In one embodiment, the process of writing a second error code for a selected code layer includes the steps of:
and respectively writing a second error code for each specific module in the module layer corresponding to the software to be processed.
In one embodiment, a process for writing a first error code for software to be processed includes the steps of:
writing a specific identification code for the software to be processed as a first error code.
In one embodiment, a process for writing a dynamic error code for pending software maintenance based on a first error code and a second error code includes the steps of:
and acquiring the code combination of the first error code and the second error code as the dynamic error code.
An error code generation apparatus comprising:
the software acquisition module is used for acquiring each piece of software to be processed in the multi-software architecture;
the hierarchical determining module is used for determining each code layer of the software to be processed in hierarchical decoupling;
the first coding module is used for coding a first error code for the software to be processed and coding a second error code for the selected code layer;
and the second coding module is used for writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
After acquiring each to-be-processed software in the multi-software architecture, the error code generation device determines each code layer of the to-be-processed software in hierarchical decoupling. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
A computer storage medium having stored thereon computer instructions which, when executed by a processor, implement the error code generation method of any of the above embodiments.
After the computer storage medium obtains each piece of to-be-processed software in the multi-software architecture, each code layer of the to-be-processed software in the layered decoupling is determined. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the error code generation method of any of the above embodiments when executing the program.
After acquiring each piece of to-be-processed software in the multi-software architecture, the computer device determines each code layer of the to-be-processed software in hierarchical decoupling. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flowchart of an error code generation method according to an embodiment;
FIG. 2 is a diagram of multiple software architecture modules according to an embodiment;
FIG. 3 is a flowchart of an error code generation method according to another embodiment;
FIG. 4 is a block diagram of an error code generator according to an embodiment;
FIG. 5 is a schematic diagram of an internal structure of a computer according to an embodiment.
Detailed Description
For better understanding of the objects, technical solutions and effects of the present invention, the present invention will be further explained with reference to the accompanying drawings and examples. Meanwhile, the following described examples are only for explaining the present invention, and are not intended to limit the present invention.
The embodiment of the invention provides an error code generation method.
Fig. 1 is a flowchart illustrating an error code generation method according to an embodiment, and as shown in fig. 1, the error code generation method according to an embodiment includes steps S100 to S103:
s100, acquiring each piece of to-be-processed software in a multi-software architecture;
s101, determining each code layer of the software to be processed in hierarchical decoupling;
in the multi-software architecture, each piece of software to be processed includes corresponding code, and the code form is used as a representation. The design framework based on the multi-software architecture comprises a plurality of pieces of software to be processed. Fig. 2 is a schematic diagram of a multi-software architecture module according to an embodiment, and as shown in fig. 2, by taking to-be-processed software as a mobile phone software APP/multi-software architecture as an example, layered decoupling is performed on APP codes according to the code logic of APPs, and codes of tool classes are provided by a base layer; the functions of all the modules are relatively independent and are provided at a module layer; the code of the service class is put into the service layer. As shown in fig. 2, the service layer, the module layer, and the base layer are provided as SDKs for the APPs to use together. In a traditional system for performing maintenance based on error codes, each APP has a corresponding independent set of error codes, and the error codes are written in the codes. When there are multiple APPs that need to be maintained, then multiple sets of error codes will greatly increase the maintenance cost.
In step S100, each piece of to-be-processed software is determined by each code in the multi-software architecture.
As shown in fig. 2, each code layer is determined according to a layered decoupling manner of the software to be processed in the multi-software architecture. In one embodiment, as shown in FIG. 2, the code layers include a base layer, a module layer, a business layer, a data layer, a service layer, and the like. As a preferred embodiment, when the software to be processed is APP, the code layer includes a base layer, a module layer, and a service layer to meet the maintenance requirement of the mobile phone software. It should be noted that, when the error code of the mobile phone software APP is written, the encoding complexity of the subsequent corresponding error code and the stability of the error code can be reduced by one or more of the base layer, the module layer and the service layer, and the error code corresponding to the base layer, the module layer and the service layer is the subsequent second error code.
And the partial code layer comprises sub-units according to the corresponding specific service logic of the software to be processed. In one embodiment, as shown in fig. 2, the specific service of the SDK on which each mobile phone software APP depends includes a unique service code for distinguishing each specific service. That is, the service layer includes a plurality of different specific services. Similarly, as shown in fig. 2, each mobile phone software APP also has a unique module code for distinguishing each specific module of the module layer based on the structure of the module layer. That is, the module layer includes a plurality of different specific modules.
S102, writing a first error code for the software to be processed, and writing a second error code for the selected code layer;
the first error code is statically corresponding to the software to be processed, and the second error code is statically corresponding to the code layer. The first error code and the second error code have the same code format as the traditional error code, and the encoding mode is determined according to the corresponding objects.
In one embodiment, fig. 3 is a flowchart of an error code generation method according to another embodiment, and as shown in fig. 3, the process of writing a first error code for the software to be processed in step S102 includes steps S200:
s200, writing a specific identification code for the software to be processed as a first error code.
Wherein, according to the unique identification of the software to be processed, a specific identification code is compiled. The unique identifier is used for distinguishing the software to be processed from other software to be processed, including identity information, authentication information or a secret key and the like. And after decoding, related personnel can determine the to-be-processed software to be maintained, maintenance requirements of the to-be-processed software, code abnormality and the like according to the decoding information.
In one embodiment, the identification code is written in the same manner as a conventional error code. Therefore, the first error code is consistent with the exception information referred to by the conventional error code, and the difference is that the relevant personnel or the execution algorithm can determine the specific software to be processed with exception according to the first error code.
In one embodiment, as shown in fig. 3, the process of writing the second error code for the selected code layer in step S103 includes the steps of:
s201, respectively writing second error codes for each specific service in a code layer corresponding to the software to be processed.
Each specific service in the code layer is a specific service on which the software to be processed depends in the multi-software architecture. Taking the software to be processed as the mobile phone software APP as an example, the corresponding specific service is the specific service of the SDK on which the mobile phone software APP depends. And the written second error code forms uniqueness according to the specific service, namely the second error code corresponds to the specific service one by one.
In one embodiment, the second error code is programmed in the same manner as a conventional error code. Therefore, the second error code is consistent with the abnormal information referred to by the conventional error code, and the difference is that the related personnel or the execution algorithm can determine the specific service with the abnormal occurrence according to the second error code.
In one embodiment, as shown in fig. 3, the process of writing the second error code for the selected code layer in step S103 includes step S202:
s202, respectively writing second error codes for each specific module in the module layer corresponding to the software to be processed.
Each specific module in the module layer is a specific module pointed by each function of the software to be processed in the multi-software architecture. Taking the software to be processed as the mobile phone software APP as an example, the specific module corresponding to the software to be processed is a specific function module corresponding to the execution function of the mobile phone software APP. And the written second error codes form uniqueness according to specific functions, namely the second error codes correspond to the specific functions one by one.
In one embodiment, the second error code is programmed in the same manner as a conventional error code. Therefore, the second error code is consistent with the abnormal information referred to by the conventional error code, and the difference is that the related personnel or the execution algorithm can determine the specific function of the abnormal according to the second error code.
The specific modules are independent, and the second error code is compiled through error codes distinguished by the modules, so that the specific modules are independent.
S103, writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
The abnormal software to be processed or the code layer of the software to be processed can be determined according to the first error code and the second error code, and meanwhile, the abnormal information can be determined, which prompt appears in the software to be processed is guided to inform a user of the abnormality, and on one hand, the abnormal software to be processed is used for providing information for relevant personnel to process various abnormal conditions and debug. Through writing of the dynamic error code, a related person or an execution algorithm can determine specific to-be-processed software-a code layer-an exception position (in the to-be-processed software or in the code) -exception information and the like.
In one embodiment, as shown in fig. 3, the process of writing a dynamic error code for the maintenance of the software to be processed according to the first error code and the second error code in step S103 includes step S203:
s203, acquiring the code combination of the first error code and the second error code as the dynamic error code.
The encoded combination of the first error code and the second error code is constructed based on the encoded combination of the first error code and the second error code, including "the first error code + the second error code", or by a correction coefficient or the like. The coding combination includes "error code = XXXYYY", "error code = AXXXBYYY", or "error code = axxxyyyy" (where "a" and "B" denote correction coefficients, which may be used to characterize the software or code layer to be processed, etc.).
For example, each application has a corresponding code, e.g., A, B, C, then each service function under the application has a corresponding code, e.g., XXX, YYY, ZZZ, and each module under the application has a corresponding code, e.g., RRR, SSS, TTT. Then, assuming that the application software corresponding to the code a has an error on the business function YYY based on the SSS module, the corresponding dynamic error code is ayysss.
Based on this, the dynamic error code includes a static first error code or a static second error code, so that a relevant person can determine, according to the dynamic error code, the abnormal software to be processed which has an abnormality, or the abnormality in the code layer of the software to be processed under the condition that the code of the software to be processed is normal, including the abnormality of a specific module in the module layer or the abnormality of a specific service in the service layer. The code exception under the multi-software architecture is accurately reflected by the dynamic error code and the single error code, and comprises specific software to be processed, service functions or affiliated modules, wherein the specific software to be processed, the service functions or the affiliated modules have the exception.
In one embodiment, the dynamic error code is updated in time according to the first error code and the second error code, so that a plurality of pieces of software to be processed can multiplex the same set of dynamic error codes, and the software maintenance cost is greatly reduced. As a better implementation mode, the set of dynamic error codes comprises a plurality of dynamic error codes under the historical time axis, so that the set of dynamic error code records are realized, and the reuse of the software to be processed under the multi-software architecture is facilitated.
In the error code generation method in any embodiment, after acquiring each piece of to-be-processed software in the multi-software architecture, each code layer of the to-be-processed software in the hierarchical decoupling is determined. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the method, in the multi-software architecture, specific directions of software to be processed, a code layer and the like corresponding to abnormal conditions can be determined through the same set of dynamic error codes, software maintenance under the multi-software architecture is achieved, the number of error codes required by maintenance is reduced, and maintenance cost and difficulty are reduced.
The embodiment of the invention also provides an error code generating device.
Fig. 4 is a block diagram of an error code generation apparatus according to an embodiment, and as shown in fig. 4, the error code generation apparatus according to an embodiment includes a software acquisition module 100, a hierarchy determination module 101, a first encoding module 102, and a second encoding module 103:
a software obtaining module 100, configured to obtain each piece of to-be-processed software in a multi-software architecture;
the hierarchical determining module 101 is configured to determine each code layer of the software to be processed in hierarchical decoupling;
the first coding module 102 is configured to write a first error code for the software to be processed, and write a second error code for the selected code layer;
and the second encoding module 103 is used for writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
After acquiring each to-be-processed software in the multi-software architecture, the error code generation device determines each code layer of the to-be-processed software in hierarchical decoupling. Further, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
Embodiments of the present invention further provide a computer storage medium, on which computer instructions are stored, and when the instructions are executed by a processor, the error code generation method of any of the above embodiments is implemented.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware related to instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, the computer program can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a terminal, or a network device) to execute all or part of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a RAM, a ROM, a magnetic or optical disk, or various other media that can store program code.
Corresponding to the computer storage medium, in one embodiment, a computer device is further provided, where the computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement any one of the error code generation methods in the embodiments.
The computer device may be a terminal, and its internal structure diagram may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement an error code generation method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
After acquiring each to-be-processed software in the multi-software architecture, the computer device determines each code layer of the to-be-processed software in hierarchical decoupling. Furthermore, a first error code is written for the software to be processed, and a second error code is written for the selected code layer. And finally, writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code. Based on the above, in the multi-software architecture, the specific directions of the software to be processed, the code layer and the like corresponding to the abnormal conditions can be determined through the same set of dynamic error codes, so that the software maintenance under the multi-software architecture is realized, the number of error codes required by the maintenance is reduced, and the maintenance cost and difficulty are reduced.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above examples only show some embodiments of the present invention, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the inventive concept, which falls within the scope of the present invention. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. An error code generation method, comprising the steps of:
acquiring each piece of software to be processed in a multi-software architecture;
determining each code layer of the software to be processed in hierarchical decoupling;
writing a first error code for the software to be processed, and writing a second error code for the selected code layer;
and writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
2. The error code generation method of claim 1, wherein the code layer comprises a base layer, a module layer, and a service layer.
3. The error code generation method according to claim 2, wherein the selected code layers include a module layer and a service layer.
4. The error code generation method according to any one of claims 1 to 3, wherein the process of writing a second error code for the selected code layer comprises the steps of:
and respectively writing the second error codes for each specific service in the code layer corresponding to the software to be processed.
5. The error code generation method according to any one of claims 1 to 3, wherein the process of writing a second error code for the selected code layer comprises the steps of:
and respectively writing the second error codes for each specific module in the module layer corresponding to the software to be processed.
6. The error code generation method according to any one of claims 1 to 3, wherein the process of writing the first error code for the software to be processed comprises the steps of:
writing a specific identification code for the software to be processed as the first error code.
7. The error code generation method according to any one of claims 1 to 3, wherein the process of writing a dynamic error code for the maintenance of the software to be processed according to the first error code and the second error code comprises the steps of:
and acquiring the coding combination of the first error code and the second error code as the dynamic error code.
8. An error code generation apparatus, comprising:
the software acquisition module is used for acquiring each piece of software to be processed in the multi-software architecture;
the hierarchical determining module is used for determining each code layer of the software to be processed in hierarchical decoupling;
the first coding module is used for coding a first error code for the software to be processed and coding a second error code for the selected code layer;
and the second coding module is used for writing a dynamic error code for maintaining the software to be processed according to the first error code and the second error code.
9. A computer storage medium having computer instructions stored thereon, wherein the computer instructions, when executed by a processor, implement the error code generation method of any of claims 1 to 7.
10. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the error code generation method according to any of claims 1 to 7 when executing the program.
CN202210434900.1A 2022-04-24 2022-04-24 Error code generation method and device Pending CN114546466A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210434900.1A CN114546466A (en) 2022-04-24 2022-04-24 Error code generation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210434900.1A CN114546466A (en) 2022-04-24 2022-04-24 Error code generation method and device

Publications (1)

Publication Number Publication Date
CN114546466A true CN114546466A (en) 2022-05-27

Family

ID=81667091

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210434900.1A Pending CN114546466A (en) 2022-04-24 2022-04-24 Error code generation method and device

Country Status (1)

Country Link
CN (1) CN114546466A (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980176A (en) * 2010-10-29 2011-02-23 华为数字技术有限公司 Software error code transferring method, device and system
CN105528260A (en) * 2015-12-09 2016-04-27 中国建设银行股份有限公司 Error code output method and device
CN109146095A (en) * 2018-08-24 2019-01-04 深圳壹账通智能科技有限公司 The treating method and apparatus of multiservice system problem
CN110502362A (en) * 2019-08-22 2019-11-26 深圳前海环融联易信息科技服务有限公司 Error code based on micro services framework defines method, apparatus and computer equipment
CN110688285A (en) * 2019-09-30 2020-01-14 深圳前海环融联易信息科技服务有限公司 Method and device for processing abnormal classification of business system, computer equipment and storage medium
CN112698868A (en) * 2021-01-08 2021-04-23 瑞芯微电子股份有限公司 Unified error code method applied to multiple systems and storage device
CN113485939A (en) * 2021-07-27 2021-10-08 芜湖雄狮汽车科技有限公司 Software system error code management method and device, electronic equipment and storage medium
CN113704021A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Error code generation method, device, equipment and medium based on abnormal information

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101980176A (en) * 2010-10-29 2011-02-23 华为数字技术有限公司 Software error code transferring method, device and system
CN105528260A (en) * 2015-12-09 2016-04-27 中国建设银行股份有限公司 Error code output method and device
CN109146095A (en) * 2018-08-24 2019-01-04 深圳壹账通智能科技有限公司 The treating method and apparatus of multiservice system problem
CN110502362A (en) * 2019-08-22 2019-11-26 深圳前海环融联易信息科技服务有限公司 Error code based on micro services framework defines method, apparatus and computer equipment
CN110688285A (en) * 2019-09-30 2020-01-14 深圳前海环融联易信息科技服务有限公司 Method and device for processing abnormal classification of business system, computer equipment and storage medium
CN112698868A (en) * 2021-01-08 2021-04-23 瑞芯微电子股份有限公司 Unified error code method applied to multiple systems and storage device
CN113485939A (en) * 2021-07-27 2021-10-08 芜湖雄狮汽车科技有限公司 Software system error code management method and device, electronic equipment and storage medium
CN113704021A (en) * 2021-08-31 2021-11-26 平安普惠企业管理有限公司 Error code generation method, device, equipment and medium based on abnormal information

Similar Documents

Publication Publication Date Title
CN109474578B (en) Message checking method, device, computer equipment and storage medium
CN1079968C (en) Data exchange system comprising portable data processing units
US20220075873A1 (en) Firmware security verification method and device
JP2014186407A (en) Test case generation method, test case generation device and program
CN110673924B (en) Multi-architecture container cloud mirror image selection method, device, equipment and storage medium
CN111309506A (en) Method, equipment, server and readable storage medium for positioning compiling errors
CN111931160A (en) Authority verification method, device, terminal and storage medium
CN101681415B (en) Method and apparatus for changing and adding activation keys for functions of digital content
CN112115481B (en) BIOS refreshing method, device, equipment and readable storage medium
CN112187783B (en) Authentication method and device, electronic equipment and storage medium
CN112181388B (en) Initializing method and device of SDK (software development kit) component, storage medium and control terminal
CN114546466A (en) Error code generation method and device
CN117495544A (en) Sandbox-based wind control evaluation method, sandbox-based wind control evaluation system, sandbox-based wind control evaluation terminal and storage medium
CN115934129A (en) Software project updating method and device, computer equipment and storage medium
CN112434347B (en) Rental business processing method, device, equipment and system
CN111124932B (en) Scheme verification method, system, device, computer equipment and storage medium
CN114416530A (en) Byte code modification method and device, computer equipment and storage medium
CN113407438B (en) Module testing method, computer device, and storage medium
CN111241173A (en) Method and system for data interaction among multiple systems
CN110187658B (en) Chip processing method and device, chip and elevator outbound board
CN111324368A (en) Data sharing method and server
CN111506299B (en) Front-end data verification method and device and computer equipment
CN116611419B (en) Automatic contract generation method, system, financial terminal and storage medium
CN113448617B (en) Data object management method and device, computer equipment and storage medium
CN110781188B (en) Form information processing method and device, electronic equipment and storage medium

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