Error code processing method and device, equipment, storage medium and program product

By obtaining and parsing the error code of the server exception data, and automatically determining and executing the processing strategy, the problems of inefficient processing and missing the best processing time in the existing technology are solved, and the server is quickly restored and stable guaranteed.

CN119537076APending Publication Date: 2025-02-28HUNAN SANXIANG BANK CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411583182.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-07
Publication Date
2025-02-28

AI Technical Summary

Technical Problem

The prior art is inefficient in handling server exceptions and is prone to miss the optimal processing time, resulting in the impact of server stability and reliability.

Method used

By obtaining the target error code of the target exception data, determining the exception handling strategy based on the error type and encoding of the error code, and automatically executing the processing logic, thereby quickly solving the exception problem.

Benefits of technology

Without manual troubleshooting and repair, it can quickly restore the normal operation of the server, minimize the impact of abnormalities on the server operation, and ensure the stability and reliability of the server.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119537076A_ABST
    Figure CN119537076A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of software engineering, and discloses an error code processing method and device, equipment, a storage medium and a program product, and the method comprises the steps: obtaining a target error code of target abnormal data, and the target error code comprises a target error type and a target error code; determining a target exception handling strategy according to the target error type, or determining the target exception handling strategy according to the target error type and the target error code; and executing processing logic on the target abnormal data according to the target abnormal processing strategy. The server abnormity can be automatically detected and quickly processed based on the error code, the processing efficiency is improved, and manual operation is reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of software engineering technology, and in particular to an error code processing method, apparatus, device, storage medium and program product. Background Art

[0002] With the rapid development of science and technology, the workload of various industries continues to grow, and the stability of the server is crucial to the operation of the industry. However, due to various reasons, the server may be abnormal, resulting in processing failure or timeout, causing inconvenience to the work.

[0003] In response to the above problems, related technologies usually use manual troubleshooting and repair methods, which have obvious disadvantages. On the one hand, manual troubleshooting and repair require a lot of time and energy. Relevant personnel need to check each link one by one, find the root cause of the anomaly, and perform manual repairs. This process is often long and cumbersome, and the processing efficiency is low. On the other hand, manual troubleshooting and repair can easily miss the best time to handle. When anomalies occur, if they cannot be handled in time, they may further expand and even trigger a chain reaction, causing greater damage to the entire server.

[0004] Therefore, the manual troubleshooting and repair of related technologies have the problem of low processing efficiency and easy to miss the best processing opportunity. Summary of the invention

[0005] In view of this, the present disclosure provides a method, apparatus, device, storage medium and program product based on an error code processing to at least solve the problem that the related technology has low processing efficiency and is prone to miss the best processing opportunity when processing server exceptions.

[0006] In a first aspect, the present disclosure provides a method for processing based on an error code, the method comprising:

[0007] Obtain a target error code of the target abnormal data, wherein the target error code includes a target error type and a target error code;

[0008] Determine a target exception handling strategy according to a target error type, or determine a target exception handling strategy according to a target error type and a target error code;

[0009] Execute processing logic on target exception data according to target exception handling strategy.

[0010] In the embodiments of the present disclosure, after obtaining the target error code of the target exception data, the target exception handling strategy is determined according to the target error type of the target error code, or the target exception handling strategy is determined according to the target error type and the target error code of the target error code, and then the target exception data is processed according to the obtained target exception handling strategy. When abnormal data appears in the server, the abnormal problem can be solved without manual troubleshooting and repair, and the server can be quickly restored to normal operation, thereby minimizing the impact of the abnormality on the operation of the server, ensuring the stability and reliability of the server, and solving the problem that manual troubleshooting and repair in related technologies are inefficient and easy to miss the best processing opportunity.

[0011] In an optional implementation, determining a target exception handling strategy according to a target error type and a target error code includes:

[0012] When the target error type is the first preset type, the target exception handling strategy is determined according to the target error code and the mapping relationship, wherein the mapping relationship is used to store the corresponding result between the error code and the exception handling strategy.

[0013] In the embodiment of the present disclosure, when the target error type is the first preset type, by combining the target error code and the mapping relationship, the server can automatically adopt the most appropriate target exception handling strategy according to different abnormal situations, so that the exception handling is more targeted, the processing efficiency is improved, and manual operations are reduced.

[0014] In an optional implementation, before determining the target exception handling strategy according to the target error code and the mapping relationship, the method further includes:

[0015] Get at least one error code and at least one exception handling strategy;

[0016] Construct the correspondence between error codes and exception handling strategies to obtain a mapping relationship.

[0017] In the embodiment of the present disclosure, by pre-acquiring at least one error code and at least one exception handling strategy, and constructing a mapping relationship between their correspondence, when an exception occurs in the server, the target exception handling strategy can be quickly determined according to the target error code and the mapping relationship, thereby improving the exception handling efficiency.

[0018] In an optional implementation, determining a target exception handling strategy according to a target error type includes:

[0019] When the target error type is a second preset type, initiating a preset number of requests for query information;

[0020] Receive feedback;

[0021] Determine the target exception handling strategy based on the feedback information.

[0022] In the embodiment of the present disclosure, when the target error type is the second preset type, by initiating a preset number of requests for query information and determining the target exception handling strategy based on the received feedback information, the server can quickly resume normal operation and ensure the continuity and stability of the server.

[0023] In an optional implementation, after executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes:

[0024] When the number of occurrences of the first preset type is greater than a preset threshold, first type notification information is sent to the terminal, wherein the preset threshold is used to represent the frequency of occurrence of the first preset type.

[0025] In the embodiment of the present disclosure, when the target error type is a first preset type, when the number of occurrences of this type of exception is greater than a preset threshold, the server sends a first type of notification information to the terminal to implement dynamic monitoring of the server, so that relevant personnel can check and adjust the server in a timely manner, optimize server performance, and reduce the possibility of similar exceptions in the future.

[0026] In an optional implementation, after executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes:

[0027] The first type of notification information or the second type of notification information is sent to the terminal according to the feedback information.

[0028] In an embodiment of the present disclosure, when the target error type is the second preset type, when this type of exception occurs, the server sends the first type of notification information or the second type of notification information to the terminal based on the feedback information to ensure that this type of exception is paid attention to in a timely manner and prompt relevant personnel to follow up on the processing flow of this type of exception.

[0029] In a second aspect, the present disclosure provides an error code processing device, the device comprising:

[0030] A first acquisition module is used to acquire a target error code of target abnormal data, wherein the target error code includes a target error type and a target error code;

[0031] A determination module, used to determine a target exception handling strategy according to a target error type, or to determine a target exception handling strategy according to a target error type and a target error code;

[0032] The execution module is used to execute processing logic on the target exception data according to the target exception processing strategy.

[0033] In a third aspect, the present disclosure provides a computer device, comprising: a memory and a processor, the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the error code processing method based on the above-mentioned first aspect or any corresponding embodiment thereof by executing the computer instructions.

[0034] In a fourth aspect, the present disclosure provides a computer-readable storage medium having computer instructions stored thereon, the computer instructions being used to enable a computer to execute the error code processing method based on the above-mentioned first aspect or any corresponding embodiment thereof.

[0035] In a fifth aspect, the present disclosure provides a computer program product, including computer instructions, which are used to enable a computer to execute the error code processing method based on the above-mentioned first aspect or any corresponding embodiment thereof. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] In order to more clearly illustrate the specific embodiments of the present disclosure or the technical solutions in the prior art, the drawings required for use in the specific embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0037] Figure 1 is a flowchart of an error code processing method according to an embodiment of the present disclosure;

[0038] Figure 2 is a system block diagram based on an error code processing method according to an embodiment of the present disclosure;

[0039] Figure 3 is a flowchart of an error code processing method according to another embodiment of the present disclosure;

[0040] Figure 4 is a structural block diagram of an error code processing device according to an embodiment of the present disclosure;

[0041] Figure 5 It is a schematic diagram of the hardware structure of the computer device of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0042] In order to make the purpose, technical solution and advantages of the embodiments of the present disclosure clearer, the technical solution in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present disclosure.

[0043] With the rapid development of science and technology, the workload of various industries is growing, and the stability of servers is crucial to the operation of the industry. Servers are an important support for the operation of various industries. Once the server becomes unstable, it will have a serious impact on various tasks in the industry. Therefore, ensuring the stable operation of the server is an issue that all industries must attach great importance to.

[0044] However, due to various reasons, the server may have anomalies, resulting in processing failure or timeout, which brings inconvenience to the work. In response to the above problems, related technologies usually adopt manual troubleshooting and repair methods, which has obvious disadvantages. On the one hand, manual troubleshooting and repair require a lot of time and energy. Relevant personnel need to check each link one by one, find the root cause of the anomaly, and perform manual repairs. This process is often long and cumbersome, and the processing efficiency is low. On the other hand, manual troubleshooting and repair can easily miss the best processing time. When anomalies occur, if they are not handled in time, they may further expand and even trigger a chain reaction, causing greater damage to the entire server.

[0045] In order to solve the above problems, according to an embodiment of the present disclosure, an embodiment of an error code processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0046] In this embodiment, a method based on error code processing is provided, such as Figure 1 As shown, Figure 1 : is a flowchart of an error code processing method according to an embodiment of the present disclosure. The flowchart can be applied to a server, such as server A, and includes the following steps:

[0047] Step S101, obtaining a target error code of target abnormal data, wherein the target error code includes a target error type and a target error code.

[0048] Alternatively, if Figure 2As shown, in the embodiment of the present disclosure, when server A detects an abnormal situation during operation, it will initiate a call to server B. Server B quickly generates an error code with a unique identifier (the error code can represent the abnormal data generated when the abnormal situation occurs) and returns the error code to server A.

[0049] Specifically, the error code includes the error type and error code. The error type is usually the result of error code classification; the error code can usually be set to 8 bits, the first 3 bits of the error code are defined as a 3-bit server code, which is used to distinguish which specific server the error is; the last 5 digits are a string of numbers, where the first digit is the error type (1-business failure type, 2-server failure type, 3-unknown result type), and the remaining 4 digits are error codes, corresponding to clear error information, such as when the user enters an incorrect password, the error code is defined as "1647"; when the user account is abnormal, the error code is defined as "1606".

[0050] In addition, after server A detects an abnormal situation and obtains an error code, it will record detailed information about the abnormal situation, including abnormal time, abnormal object, abnormal content, and error code, etc., for subsequent processing and monitoring.

[0051] It should be noted that the “target abnormal data” involved in the embodiments of the present disclosure may be any abnormal data in the above-mentioned “abnormal data”, the “target error code” may be any error code in the above-mentioned “error codes”, the “target error type” may be any type in the above-mentioned “error types”, and the “target error code” may be any code in the above-mentioned “error codes”.

[0052] Step S102, determining a target exception handling strategy according to a target error type, or determining a target exception handling strategy according to a target error type and a target error code.

[0053] Optionally, in the disclosed embodiment, after obtaining the target error code, server A will perform a detailed analysis on it to obtain comprehensive information about the exception. By parsing the target error code into a target error type and a target error code, the target exception handling strategy is determined according to the specific type of the target error type or according to a combination of the target error type and the target error code.

[0054] It should be explained that Server A also has a highly intelligent decision-making capability and can automatically take the most appropriate processing measures according to different abnormal situations.

[0055] Step S103: executing processing logic on target abnormal data according to the target abnormality processing strategy.

[0056] Optionally, in the embodiment of the present disclosure, after server A determines the target exception processing strategy, it automatically executes processing logic on the target exception data.

[0057] In addition, after server A executes the target exception handling strategy and resolves the exception, it will record detailed information about the processing results, including processing time, processing method, and processing results, for subsequent query and monitoring.

[0058] In the embodiments of the present disclosure, after obtaining the target error code of the target exception data, the target exception handling strategy is determined according to the target error type of the target error code, or the target exception handling strategy is determined according to the target error type and the target error code of the target error code, and then the target exception data is processed according to the obtained target exception handling strategy. When abnormal data appears in the server, the abnormal problem can be solved without manual troubleshooting and repair, and the server can be quickly restored to normal operation, thereby minimizing the impact of the abnormality on the operation of the server, ensuring the stability and reliability of the server, and solving the problem that manual troubleshooting and repair in related technologies are inefficient and easy to miss the best processing opportunity.

[0059] In some optional implementations, determining a target exception handling strategy according to a target error type and a target error code includes:

[0060] When the target error type is the first preset type, the target exception handling strategy is determined according to the target error code and the mapping relationship, wherein the mapping relationship is used to store the corresponding result between the error code and the exception handling strategy.

[0061] Optionally, in this embodiment, the error type includes a first preset type. The first preset type includes a business failure type and a server failure type. When the target error type is a business failure type, the corresponding target error code is obtained, and the mapping relationship is searched according to the target error code to find the corresponding target exception handling strategy. For example, for abnormal data with a target error code of "1647", server A can automatically send a reminder email or SMS to notify the user to re-enter the password; when the target error type is a server failure type, the corresponding target error code is obtained, and the mapping relationship is searched according to the target error code to find the corresponding target exception handling strategy. For example, for abnormal transactions with a target error code of "1606", server A can automatically pause and prompt the user to cancel the operation.

[0062] It should be noted that the mapping relationship in the embodiment of the present disclosure is used to characterize the correspondence between all error codes and all exception handling strategies, so after determining the unique target error code, the unique target exception handling strategy corresponding thereto can be found by searching the mapping relationship.

[0063] In this embodiment, when the target error type is the first preset type, by combining the target error code and the mapping relationship, the server can automatically adopt the most appropriate target exception handling strategy according to different exception situations, making exception handling more targeted, improving processing efficiency, and reducing manual operations.

[0064] In some optional implementations, before determining the target exception handling strategy according to the target error code and the mapping relationship, the method further includes:

[0065] Get at least one error code and at least one exception handling strategy;

[0066] Construct the correspondence between error codes and exception handling strategies to obtain a mapping relationship.

[0067] Optionally, this embodiment obtains a corresponding mapping relationship by pre-acquiring at least one error code and at least one exception handling strategy, and constructing a correspondence between them. When a first preset type of exception occurs in server A, the corresponding target exception handling strategy can be quickly determined based on the target error code in the error code and the mapping relationship.

[0068] In addition, after server A constructs the mapping relationships, it will store all the mapping relationships in a public document for subsequent query and processing.

[0069] In this embodiment, by pre-acquiring at least one error code and at least one exception handling strategy, and constructing a mapping relationship between their correspondence, when an exception occurs in the server, the target exception handling strategy can be quickly determined according to the target error code and the mapping relationship, thereby improving the exception handling efficiency.

[0070] In some optional implementations, determining a target exception handling strategy according to a target error type includes:

[0071] When the target error type is a second preset type, initiating a preset number of requests for query information;

[0072] Receive feedback;

[0073] Determine the target exception handling strategy based on the feedback information.

[0074] Optionally, in this embodiment, the error type includes not only the first preset type mentioned in the above embodiment, but also a second preset type, wherein the second preset type refers to an unknown result type.

[0075] Specifically, Figure 2As shown, when the target error type is the second preset type, server A automatically triggers the corresponding self-healing operation, that is, initiates a preset number of times (for example, 5 times) to request query information to server B, and server B responds according to the received request query information, such as sending feedback information to server A. After receiving the feedback information, server A determines the target exception handling strategy according to the received feedback information.

[0076] It should be noted that the content of the feedback information here is the target error code of the server exception. After server A obtains the target error code of the exception, it determines the target error type of the exception. If the target error type is the first preset type, it continues to determine the target exception handling strategy based on the target error type or determines the target exception handling strategy based on the target error type combined with the target error code; if the content of the feedback information is a success class, there is no need to execute the exception handling strategy.

[0077] In this embodiment, when the target error type is the second preset type, by initiating a preset number of request query information and determining the target exception handling strategy based on the received feedback information, the server can quickly resume normal operation and ensure the continuity and stability of the server.

[0078] In some optional implementations, after executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes:

[0079] When the number of occurrences of the first preset type is greater than a preset threshold, first type notification information is sent to the terminal, wherein the preset threshold is used to represent the frequency of occurrence of the first preset type.

[0080] Alternatively, if Figure 2 As shown, in the embodiment of the present disclosure, when the target error type is the first preset type, after executing the target exception handling strategy and resolving the abnormal situation of this type, it is necessary to count the number of occurrences of this type of abnormal situation, and compare the number of occurrences with a preset threshold (for example, 5). When the number of occurrences is greater than the preset threshold, it means that server A is in a more serious abnormal state and requires manual inspection and adjustment to avoid the abnormality from constantly evolving and escalating, causing server A to crash. At this time, server A sends a first type of notification information (failure notification information) to the terminal, and promptly notifies relevant personnel so that server A can be monitored.

[0081] In this embodiment, when the target error type is the first preset type, when the number of occurrences of this type of exception is greater than the preset threshold, the server sends a first type of notification information to the terminal to achieve dynamic monitoring of the server, so that relevant personnel can check and adjust the server in time, optimize server performance, and reduce the possibility of similar exceptions in the future.

[0082] In some optional implementations, after executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes:

[0083] The first type of notification information or the second type of notification information is sent to the terminal according to the feedback information.

[0084] Alternatively, if Figure 2 As shown, in the embodiment of the present disclosure, for the second preset type, when this type of exception occurs, server A sends the first type of notification information (failure notification information) or the second type of notification information (success notification information) to the terminal according to the feedback information, and promptly notifies relevant personnel.

[0085] Specifically, after server A receives the feedback information and determines the abnormal error type, if the feedback information is abnormal and the error type is the first preset type, it sends the first type of notification information (failure notification information) to the terminal; if the feedback information is a success type, it sends the second type of notification information (success notification information) to the terminal.

[0086] In this embodiment, when the target error type is the second preset type, when this type of exception occurs, the server sends the first type of notification information or the second type of notification information to the terminal based on the feedback information to ensure that this type of exception is paid attention to in a timely manner and prompt relevant personnel to follow up on the processing flow of this type of exception.

[0087] In some optional embodiments, such as Figure 3 As shown, Figure 3 It is a flow chart of an error code processing method based on another embodiment of the present disclosure. In the figure, server A first obtains the target error code of the target abnormal data, determines whether the target error type is a first preset type, and if the target error type is the first preset type, obtains the target error code, determines the target exception handling strategy based on a mapping relationship constructed by at least one error code obtained in advance and at least one exception handling strategy, executes the processing logic on the target abnormal data, and then counts the number of occurrences of the first preset type to determine whether it is greater than a preset threshold. If the number of occurrences of the first preset type is greater than the preset threshold, a first type of notification information is sent to the terminal. If the number of occurrences of the first preset type is less than or equal to the preset threshold, no notification information is sent to the terminal; if the target error type is a second preset type, a preset number of requests for query information are initiated to server B. After receiving the feedback information, server A sends the first type of notification information to the terminal according to the feedback information (abnormality occurs), and returns to the beginning of the process to execute the loop, or sends the second type of notification information to the terminal according to the feedback information (success).

[0088] In this embodiment, by automatically detecting and quickly processing server exceptions based on error codes, processing efficiency is improved and manual operations are reduced.

[0089] In this embodiment, a device based on error code processing is also provided, which is used to implement the above embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0090] This embodiment provides a device based on error code processing, such as Figure 4 As shown, including:

[0091] The first acquisition module 401 is used to acquire a target error code of target abnormal data, wherein the target error code includes a target error type and a target error code;

[0092] A determination module 402 is used to determine a target exception handling strategy according to a target error type, or to determine a target exception handling strategy according to a target error type and a target error code;

[0093] The execution module 403 is used to execute processing logic on the target abnormal data according to the target abnormality processing strategy.

[0094] In this embodiment, after obtaining the target error code of the target exception data, the target exception handling strategy is determined according to the target error type of the target error code, or the target exception handling strategy is determined according to the target error type and the target error code of the target error code, and then the target exception data is processed according to the obtained target exception handling strategy. When abnormal data appears in the server, the abnormal problem can be solved without manual troubleshooting and repair, and the server can be quickly restored to normal operation, thereby minimizing the impact of the abnormality on the server operation, ensuring the stability and reliability of the server, and solving the problem that manual troubleshooting and repair in related technologies are inefficient and easy to miss the best processing opportunity.

[0095] In some optional implementations, the determining module 402 includes:

[0096] The first determining unit is used to determine a target exception handling strategy according to a target error code and a mapping relationship when a target error type is a first preset type, wherein the mapping relationship is used to store a corresponding result between the error code and the exception handling strategy.

[0097] In some optional embodiments, the device further comprises:

[0098] A second acquisition module is used to acquire at least one error code and at least one exception handling strategy before determining the target exception handling strategy according to the target error code and the mapping relationship;

[0099] A construction module is used to construct the correspondence between the error code and the exception handling strategy to obtain a mapping relationship.

[0100] In some optional implementations, the determining module 402 includes:

[0101] A query unit, configured to initiate a preset number of requests for query information when the target error type is a second preset type;

[0102] A receiving unit, used for receiving feedback information;

[0103] The second determining unit determines a target exception handling strategy according to the feedback information.

[0104] In some optional embodiments, the device further comprises:

[0105] The first sending module is used to send a first type of notification information to the terminal after executing processing logic on the target exception data according to the target exception handling strategy, when the number of occurrences of the first preset type is greater than a preset threshold, wherein the preset threshold is used to characterize the frequency of occurrence of the first preset type.

[0106] In some optional embodiments, the device further comprises:

[0107] The second sending module is used to send the first type notification information or the second type notification information to the terminal according to the feedback information after executing the processing logic on the target exception data according to the target exception processing strategy and when the target error type is the second preset type.

[0108] The further functional description of each of the above modules and units is the same as that of the above corresponding embodiments and will not be repeated here.

[0109] The error code processing device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC (Application Specific Integrated Circuit) circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0110] The present disclosure also provides a computer device having the above Figure 4 The error code based processing device is shown.

[0111] See also Figure 5 , Figure 5is a schematic diagram of a computer device provided by an optional embodiment of the present disclosure, such as Figure 5 As shown, the computer device includes: one or more processors 10, a memory 20, and interfaces for connecting various components, including high-speed interfaces and low-speed interfaces. Various components are connected to each other using different buses for communication, and can be installed on a common mainboard or installed in other ways as needed. The processor can process the instructions executed in the computer device, including instructions stored in or on the memory to display the graphical information of the GUI on an external input / output device (such as, a display device coupled to the interface). In some optional embodiments, if necessary, multiple processors and / or multiple buses can be used together with multiple memories and multiple memories. Similarly, multiple computer devices can be connected, and each device provides some necessary operations (for example, as a server array, a group of blade servers, or a multi-processor system). Figure 5 A processor 10 is taken as an example.

[0112] The processor 10 may be a central processing unit, a network processor or a combination thereof. The processor 10 may further include a hardware chip. The hardware chip may be a dedicated integrated circuit, a programmable logic device or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general purpose array logic or any combination thereof.

[0113] The memory 20 stores instructions executable by at least one processor 10, so that the at least one processor 10 executes the method shown in the above embodiment.

[0114] The memory 20 may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 20 may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some optional embodiments, the memory 20 may optionally include a memory remotely arranged relative to the processor 10, and these remote memories may be connected to the computer device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0115] The memory 20 may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a flash memory, a hard disk or a solid state drive; the memory 20 may also include a combination of the above types of memory.

[0116] The computer device further comprises a communication interface 30 for the computer device to communicate with other devices or a communication network.

[0117] The embodiments of the present disclosure also provide a computer-readable storage medium. The above-mentioned method according to the embodiments of the present disclosure can be implemented in hardware, firmware, or can be implemented as a computer code that can be recorded in a storage medium, or can be implemented as a computer code that is originally stored in a remote storage medium or a non-temporary machine-readable storage medium and will be stored in a local storage medium and downloaded through a network, so that the method described herein can be stored in such software processing on a storage medium using a general-purpose computer, a dedicated processor, or programmable or dedicated hardware. Among them, the storage medium can be a magnetic disk, an optical disk, a read-only storage memory, a random access memory, a flash memory, a hard disk or a solid-state drive, etc.; further, the storage medium can also include a combination of the above-mentioned types of memory. It can be understood that a computer, a processor, a microprocessor controller, or programmable hardware includes a storage component that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor, or hardware, the method shown in the above embodiment is implemented.

[0118] A part of the present disclosure may be applied as a computer program product, such as a computer program instruction, which, when executed by a computer, can call or provide the method and / or technical solution according to the present disclosure through the operation of the computer. Those skilled in the art should understand that the existence of computer program instructions in computer-readable media includes, but is not limited to, source files, executable files, installation package files, etc., and accordingly, the way in which computer program instructions are executed by a computer includes, but is not limited to: the computer directly executes the instruction, or the computer compiles the instruction and then executes the corresponding compiled program, or the computer reads and executes the instruction, or the computer reads and installs the instruction and then executes the corresponding installed program. Here, the computer-readable medium can be any available computer-readable storage medium or communication medium accessible to the computer.

[0119] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method based on error code processing, characterized in that: The method comprises: Obtaining a target error code of target abnormal data, wherein the target error code includes a target error type and a target error code; Determine a target exception handling strategy according to the target error type, or determine the target exception handling strategy according to the target error type and the target error code; Execute processing logic on the target exception data according to the target exception processing strategy.

2. The method according to claim 1, characterized in that The determining the target exception handling strategy according to the target error type and the target error code includes: In the case that the target error type is a first preset type, the target exception handling strategy is determined according to the target error code and a mapping relationship, wherein the mapping relationship is used to store a corresponding result between an error code and an exception handling strategy.

3. The method according to claim 2, characterized in that Before determining the target exception handling strategy according to the target error code and the mapping relationship, the method further includes: Obtaining at least one of the error codes and at least one of the exception handling strategies; A correspondence between the error code and the exception handling strategy is constructed to obtain the mapping relationship.

4. The method according to claim 1, characterized in that: Determining a target exception handling strategy according to the target error type includes: In case the target error type is a second preset type, initiating a preset number of requests for query information; Receive feedback; The target exception handling strategy is determined according to the feedback information.

5. The method according to claim 2, characterized in that: After executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes: When the number of occurrences of the first preset type is greater than a preset threshold, first type notification information is sent to the terminal, wherein the preset threshold is used to represent the frequency of occurrence of the first preset type.

6. The method according to claim 4, characterized in that After executing the processing logic on the target exception data according to the target exception processing strategy, the method further includes: The first type of notification information or the second type of notification information is sent to the terminal according to the feedback information.

7. A device based on error code processing, characterized in that: The device comprises: A first acquisition module is used to acquire a target error code of target abnormal data, wherein the target error code includes a target error type and a target error code; A determination module, configured to determine a target exception handling strategy according to the target error type, or to determine the target exception handling strategy according to the target error type and the target error code; An execution module is used to execute processing logic on the target exception data according to the target exception processing strategy.

8. A computer device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the error code processing method according to any one of claims 1 to 6 by executing the computer instructions.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the error code processing method according to any one of claims 1 to 6.

10. A computer program product, characterized in that It comprises computer instructions, and the computer instructions are used to make a computer execute the error code processing method according to any one of claims 1 to 6.