CN110928715A - Method, device, medium and electronic equipment for prompting error description information - Google Patents
Method, device, medium and electronic equipment for prompting error description information Download PDFInfo
- Publication number
- CN110928715A CN110928715A CN201911006724.6A CN201911006724A CN110928715A CN 110928715 A CN110928715 A CN 110928715A CN 201911006724 A CN201911006724 A CN 201911006724A CN 110928715 A CN110928715 A CN 110928715A
- Authority
- CN
- China
- Prior art keywords
- error
- description information
- data set
- code
- prompting
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 46
- 238000012423 maintenance Methods 0.000 claims description 15
- 238000004590 computer program Methods 0.000 claims description 9
- 230000004044 response Effects 0.000 abstract description 5
- 230000009467 reduction Effects 0.000 abstract description 4
- 230000006870 function Effects 0.000 description 15
- 238000010586 diagram Methods 0.000 description 10
- 238000004891 communication Methods 0.000 description 6
- 230000003287 optical effect Effects 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008901 benefit Effects 0.000 description 4
- 230000000737 periodic effect Effects 0.000 description 4
- 230000008569 process Effects 0.000 description 3
- 230000007246 mechanism Effects 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 108010001267 Protein Subunits Proteins 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 239000000835 fiber Substances 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 239000000126 substance Substances 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/0766—Error or fault reporting or storing
- G06F11/0775—Content or structure details of the error report, e.g. specific table structure, specific error fields
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error 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/079—Root cause analysis, i.e. error or fault diagnosis
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Biomedical Technology (AREA)
- Debugging And Monitoring (AREA)
Abstract
The disclosure provides a method, a device, a medium and an electronic device for prompting error description information. The method comprises the following steps: intercepting a first error message; analyzing the first error message to obtain a first error code; retrieving a first error data set based on the first error code, obtaining first error description information; prompting the first error description information in a user interface. The disclosure provides a method for prompting error information, which supports editing of error information prompted to a user, and avoids reduction of user experience caused by prompting of error codes generated by internal errors. Meanwhile, the coroutine is adopted to pull the error information into the memory, so that the delay time of the response message is reduced, and the user experience is guaranteed.
Description
Technical Field
The present disclosure relates to the field of computer technologies, and in particular, to a method, an apparatus, a medium, and an electronic device for prompting error description information.
Background
The error is a phenomenon that people cannot normally operate software or hardware when using the software or the hardware.
Since the types of errors are numerous in computer technology, it is necessary to distinguish errors in order to locate errors in software or hardware during debugging. An error code (english full name error code) is usually set at a specific position of a software or hardware system. When the software or hardware has errors in operation, the error type is judged and identified through the original setting in the system, and the error code is displayed to the tester through the error message, usually by using English prompt. The developer or tester can quickly find out the specific reason that the software or hardware can not normally operate through the error code.
However, due to the expertise of error codes, they are only suitable for display to developers or testers of software or hardware. If the display is displayed to the user, the display is not helpful to the user, and the user experience is not good.
Disclosure of Invention
This summary is provided to introduce a selection of concepts in a simplified form that are further described below in the detailed description. This summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
An object of the present disclosure is to provide a method, an apparatus, a medium, and an electronic device for prompting error description information, which can solve at least one of the above-mentioned technical problems. The specific scheme is as follows:
according to a specific implementation manner of the present disclosure, in a first aspect, the present disclosure provides a method for prompting error description information, which is applied to coroutines, and includes:
intercepting a first error message;
analyzing the first error message to obtain a first error code;
retrieving a first error data set based on the first error code, obtaining first error description information;
prompting the first error description information in a user interface.
According to a second aspect of the present disclosure, there is provided an apparatus for prompting error description information, including an coroutine module, where the coroutine module includes:
an intercepting error message unit for intercepting the first error message;
an error code acquiring unit, configured to analyze the first error message and acquire a first error code;
an obtain error description information unit configured to retrieve a first error data set based on the first error code, and obtain first error description information;
and the prompting unit is used for prompting the first error description information in a user interface.
According to a third aspect, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method of prompting for error description information according to any of the first aspects.
According to a fourth aspect thereof, the present disclosure provides an electronic device, comprising: one or more processors; storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the method of prompting error description information as described in any of the first aspects.
Compared with the prior art, the scheme of the embodiment of the disclosure at least has the following beneficial effects:
the disclosure provides a method, a device, a medium and an electronic device for prompting error description information. The method comprises the following steps: intercepting a first error message; analyzing the first error message to obtain a first error code; retrieving a first error data set based on the first error code, obtaining first error description information; prompting the first error description information in a user interface. The disclosure provides a method for prompting error information, which supports editing of error information prompted to a user, and avoids reduction of user experience caused by prompting of error codes generated by internal errors. Meanwhile, the coroutine is adopted to pull the error information into the memory, so that the delay time of the response message is reduced, and the user experience is guaranteed.
Drawings
The above and other features, advantages and aspects of various embodiments of the present disclosure will become more apparent by referring to the following detailed description when taken in conjunction with the accompanying drawings. Throughout the drawings, the same or similar reference numbers refer to the same or similar elements. It should be understood that the drawings are schematic and that elements and features are not necessarily drawn to scale. In the drawings:
FIG. 1 illustrates a flow diagram of a method of prompting for error description information in accordance with an embodiment of the present disclosure;
FIG. 2 illustrates a schematic diagram of a method of prompting for error description information, in accordance with an embodiment of the present disclosure;
FIG. 3 illustrates a block diagram of elements of an apparatus to prompt for error description information, in accordance with an embodiment of the present disclosure;
fig. 4 shows an electronic device connection structure schematic according to an embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure are shown in the drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but rather are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustration purposes only and are not intended to limit the scope of the disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order, and/or performed in parallel. Moreover, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "include" and variations thereof as used herein are open-ended, i.e., "including but not limited to". The term "based on" is "based, at least in part, on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions for other terms will be given in the following description.
It should be noted that the terms "first", "second", and the like in the present disclosure are only used for distinguishing different devices, modules or units, and are not used for limiting the order or interdependence relationship of the functions performed by the devices, modules or units.
It is noted that references to "a", "an", and "the" modifications in this disclosure are intended to be illustrative rather than limiting, and that those skilled in the art will recognize that "one or more" may be used unless the context clearly dictates otherwise.
The names of messages or information exchanged between devices in the embodiments of the present disclosure are for illustrative purposes only, and are not intended to limit the scope of the messages or information.
Alternative embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.
The first embodiment provided by the present disclosure, that is, an embodiment of a method for prompting error description information.
The following describes an embodiment of the present disclosure in detail with reference to fig. 1 and fig. 2, where fig. 1 is a flowchart of a method for prompting error description information provided by the embodiment of the present disclosure, and fig. 2 shows a schematic diagram of the method for prompting error description information according to the embodiment of the present disclosure. The embodiment of the disclosure is applied to coroutine.
Coroutine (also called micro-thread) is also called fiber. Coroutines are similar to functions, but during execution, a function can be interrupted inside, and after the interruption, another function is executed instead, and the function is returned from the other function when appropriate and continues to be executed.
The greatest advantage of coroutines over threads is the extremely high execution efficiency of coroutines. Because the function switching is not thread switching but is controlled by the program, the performance advantage of coroutine is more obvious when the number of the function switching is larger than that of multithread without the overhead of thread switching. The second great advantage is that no lock mechanism of multithreading is needed, because only one thread exists, there is no conflict of write variables at the same time, the shared resource is controlled in the coroutine without locking, only the state needs to be judged, so the execution efficiency is much higher than that of multithreading.
Because coroutine is a thread to execute, multiple processes and coroutines work cooperatively, so that multiple cores can be fully utilized, the high efficiency of the coroutine is fully exerted, and extremely high performance can be obtained.
Step S101, intercepting a first error message.
A message refers to a way of interacting and communicating between software objects.
The error is a phenomenon that people cannot normally operate software or hardware when using the software or the hardware.
Since the types of errors are numerous in computer technology, it is necessary to distinguish errors in order to locate errors in software or hardware during debugging. An error code (english full name error code) is usually set at a specific position of a software or hardware system. When the software or hardware has errors in operation, the error type is judged and identified through the original setting in the system, and the error code is displayed to the tester through the error message, usually by using English prompt. The developer or tester can quickly find out the specific reason that the software or hardware can not normally operate through the error code.
The first error message is intercepted, that is, an intercepting layer is arranged between the system and the user interface, and after the system sends the first error message, the intercepting layer acquires the first error message before prompting the information of the first error message. Avoiding prompting the information of the first error message directly to the user interface.
There are generally many ways to intercept a message. For example, messages are intercepted using hook technology; there are also mechanisms for interception in programming languages. The present embodiment of the interception method is not described in detail, and can be implemented by referring to various implementations in the prior art.
Step S102, analyzing the first error message to obtain a first error code.
Typically the error message comprises a series of information including an error code. And the information of the error message is mostly described by english. And the error code is represented by a 16-ary number. Based on this feature, an error code can be extracted from the information of the error message.
Step S103, retrieving a first error data set based on the first error code, and obtaining first error description information.
The error description information refers to information that can be directly read and understood by an ordinary user. For example, for Chinese, the error description information adopts Chinese to describe the reason of error generation; for Japanese, Japanese is adopted for error description information to describe the reason of error generation; for the Arabic, the error description information adopts Arabic to describe the reason of the error generation.
For step S103, the embodiment of the present disclosure provides two specific application scenarios.
Scene one
Retrieving a first error data set based on the first error code, obtaining first error description information, comprising the steps of:
retrieving a first error data set in a remote server based on the first error code, obtaining first error description information.
That is, the first error data set is stored in the remote server, and the first error description information is obtained by remotely calling the first error data set.
By adopting remote calling of the error data set, particularly in distributed application, the synchronization of the called error information and the updated information in the error data set can be ensured, so that the user experience is improved.
Scene two
Retrieving a first error data set based on the first error code, obtaining first error description information, comprising the steps of:
and retrieving a first error data set stored in a local memory based on the first error code, and acquiring the first error description information.
That is, the first error data set is stored in the local memory, and the first error description information is obtained by retrieving the first error data set.
At this time, the first error data set may be stored in the memory in an array structure, or may be stored in the memory in a chain storage structure.
The error data set is stored in the local memory, so that the delay time of the response message can be reduced, and the user experience is guaranteed.
And step S104, prompting the first error description information in a user interface.
For the second scenario, the method in the embodiment of the present disclosure further includes the following steps:
step S111, acquires an error update message.
The error updating message comprises a periodic timing message and/or an instant updating message sent by the error updating terminal.
The periodic timing messages may be sent periodically by a periodic timing clock set locally. For example, the timing clock periodically sends out a periodic timing message every 10 minutes, that is, the intercept layer gets an error update message every 10 minutes.
And after the error updating terminal updates the information in the maintenance data set (the maintenance data set at least comprises the error codes and the corresponding error description information) of the remote server, the error updating terminal sends an instant updating message to the interception layers of all the applications, so that the interception layers of all the applications can update the first error data set in the local memory in time. Therefore, the consistency and the accuracy of the information in the first error data set in the local memory are improved.
And the maintenance data set is used for storing the latest error information updated by the error updating terminal.
Step S112, based on the triggering of the error update message, obtaining an error code and corresponding error description information from the maintenance data set of the remote server.
Optionally, the maintenance data set further includes an update time corresponding to the error code.
The method for acquiring the error code and the error description information from the maintenance data set of the remote server comprises the following steps:
and step S112-1, acquiring the last updating time from the local updating time data set, and acquiring the current clock time.
The local update time data set may be stored in a local configuration file, or registry, or text file, or spreadsheet.
The last update time is stored in the update time dataset and the current clock time is the collected clock time.
The last update time and the current clock time may both be derived from the remote server clock or from the local clock. The remote server clock can ensure the consistency of all the information in the first error data set stored in the memory in the distributed system, and the difference of the information in different first error data sets in the distributed system caused by the error of the local clock is avoided. The local clock can improve the system operation efficiency and reduce the time delay.
Step S112-2, retrieving the update time meeting the update time range in the maintenance data set, and obtaining the updated error code and the error description information.
The updating time range is a time range which is greater than the last updating time and less than or equal to the current clock time.
For example, if the last update time recorded in the update time dataset is 0 minutes 0 seconds at 1 st 0 th at 2019, 10 th at 1 st, and the current clock time is 0 minutes 0 seconds at 0 th at 1 st 0 th at 2019, 11 th at 1 st, 0 th at 1 st, then whether the update time in the maintenance dataset meets the update time range is searched, and if yes, the updated error code and the error description information are acquired.
Optionally, after obtaining the updated error code and the updated error description information, the method further includes the following steps:
and step S112-3, storing the current clock time as the last update time in the update time data set.
So that the next time of updating, the current clock time is taken as the starting time of the updating time range.
Step S113, updating the first error data set based on the error code and the error description information.
Optionally, after the updating the first error data set based on the error code and the error description information, the method further includes the following steps:
step S114, updating a second error data set saved in the local file based on the error code and the error description information.
The second error data set in the local file is saved as backup information. Once the local system is restarted, the second error data set can be directly obtained from the local file and stored in the memory. This improves the start-up efficiency and reduces time delay.
The embodiment of the disclosure provides a method for prompting error information, which supports editing of error information prompted to a user, and avoids reduction of user experience caused by prompting of error codes generated by internal errors. Meanwhile, the coroutine is adopted to pull the error information into the memory, so that the delay time of the response message is reduced, and the user experience is guaranteed.
Corresponding to the first embodiment provided by the present disclosure, the present disclosure also provides a second embodiment, that is, an apparatus for prompting error description information. Since the second embodiment is basically similar to the first embodiment, the description is simple, and the relevant portions should be referred to the corresponding description of the first embodiment. The device embodiments described below are merely illustrative.
Fig. 3 shows an embodiment of an apparatus for prompting error description information provided by the present disclosure. Fig. 3 is a block diagram of a unit of an apparatus for prompting error description information according to an embodiment of the present disclosure.
Referring to fig. 3, the present disclosure provides an apparatus for prompting error description information, including an coroutine module, where the coroutine module includes: an intercept error message unit 301, an obtain error code unit 302, an obtain error description information unit 303, and a prompt unit 304.
An intercept error message unit 301 for intercepting the first error message;
an error code acquiring unit 302, configured to analyze the first error message and acquire a first error code;
an obtain error description information unit 303, configured to retrieve a first error data set based on the first error code, and obtain first error description information;
a prompting unit 304, configured to prompt the first error description information in a user interface.
Optionally, the unit 303 for obtaining error description information includes:
a first obtain error description information subunit, configured to retrieve a first error data set in a remote server based on the first error code, and obtain first error description information.
Optionally, the unit 303 for obtaining error description information includes:
and a second error description information obtaining subunit, configured to retrieve, based on the first error code, a first error data set stored in a local memory, and obtain the first error description information.
Optionally, in the apparatus, the apparatus further includes:
an error update message acquiring unit, configured to acquire an error update message;
an error information obtaining unit, configured to obtain an error code and corresponding error description information from a maintenance data set of a remote server based on the triggering of the error update message;
an updating unit for updating the first error data set based on the error code and the error description information.
Optionally, the maintenance data set further includes an update time corresponding to the error code;
in the unit for acquiring error information, the method includes:
the time obtaining subunit is used for obtaining the last updating time from the local updating time data set and obtaining the current clock time;
an error information updating sub-unit, configured to retrieve the update time meeting an update time range in the maintenance data set, and obtain the updated error code and the error description information; the updating time range is a time range which is greater than the last updating time and less than or equal to the current clock time.
Optionally, in the unit for obtaining error information, the method further includes:
and the current clock time saving subunit is used for saving the current clock time as the last update time in the update time data set.
Optionally, in the apparatus, the apparatus further includes:
and the local file updating unit is used for updating a second error data set saved in the local file based on the error code and the error description information after the first error data set is updated based on the error code and the error description information.
The embodiment of the disclosure provides a method for prompting error information, which supports editing of error information prompted to a user, and avoids reduction of user experience caused by prompting of error codes generated by internal errors. Meanwhile, the coroutine is adopted to pull the error information into the memory, so that the delay time of the response message is reduced, and the user experience is guaranteed.
The embodiment of the present disclosure provides a third embodiment, that is, an electronic device, where the electronic device is used for prompting error description information, and the electronic device includes: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the one processor to cause the at least one processor to perform the method of prompting for error description information as described in the first embodiment.
The present disclosure provides a fourth embodiment, which is a computer storage medium for prompting error description information, the computer storage medium storing computer executable instructions, the computer executable instructions being capable of executing the method for prompting error description information as described in the first embodiment.
Referring now to FIG. 4, shown is a schematic diagram of an electronic device suitable for use in implementing embodiments of the present disclosure. The terminal device in the embodiments of the present disclosure may include, but is not limited to, a mobile terminal such as a mobile phone, a notebook computer, a digital broadcast receiver, a PDA (personal digital assistant), a PAD (tablet computer), a PMP (portable multimedia player), a vehicle terminal (e.g., a car navigation terminal), and the like, and a stationary terminal such as a digital TV, a desktop computer, and the like. The electronic device shown in fig. 4 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the electronic device may include a processing means (e.g., a central processing unit, a graphics processor, etc.) 401 that may perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)402 or a program loaded from a storage means 408 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data necessary for the operation of the electronic apparatus are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the electronic device to communicate with other devices wirelessly or by wire to exchange data. While fig. 4 illustrates an electronic device having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication device 409, or from the storage device 408, or from the ROM 402. The computer program performs the above-described functions defined in the methods of the embodiments of the present disclosure when executed by the processing device 401.
It should be noted that the computer readable medium in the present disclosure can be a computer readable signal medium or a computer readable storage medium or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
In some embodiments, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText transfer protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communications network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the Internet (e.g., the Internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed network.
The computer readable medium may be embodied in the electronic device; or may exist separately without being assembled into the electronic device.
Computer program code for carrying out operations for the present disclosure may be written in any combination of one or more programming languages, including but not limited to an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units described in the embodiments of the present disclosure may be implemented by software or hardware. Where the name of an element does not in some cases constitute a limitation on the element itself.
The functions described herein above may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field Programmable Gate Arrays (FPGAs), Application Specific Integrated Circuits (ASICs), Application Specific Standard Products (ASSPs), systems on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are disclosed as example forms of implementing the claims.
Claims (10)
1. A method for prompting error description information is applied to coroutines and is characterized by comprising the following steps:
intercepting a first error message;
analyzing the first error message to obtain a first error code;
retrieving a first error data set based on the first error code, obtaining first error description information;
prompting the first error description information in a user interface.
2. The method of claim 1, wherein retrieving the first error data set based on the first error code, obtaining first error description information, comprises:
retrieving a first error data set in a remote server based on the first error code, obtaining first error description information.
3. The method of claim 1, wherein retrieving the first error data set based on the first error code, obtaining first error description information, comprises:
and retrieving a first error data set stored in a local memory based on the first error code, and acquiring the first error description information.
4. The method of claim 3, further comprising:
acquiring an error updating message;
acquiring error codes and corresponding error description information from a maintenance data set of a remote server based on the triggering of the error update message;
updating the first error data set based on the error code and the error description information.
5. The method of claim 4, wherein the maintenance data set further includes an update time corresponding to the error code;
the obtaining of the error code and the error description information from the maintenance data set of the remote server includes:
acquiring the last update time from a local update time data set, and acquiring the current clock time;
retrieving the update time meeting an update time range in the maintenance data set, and acquiring the error code and the error description information after updating; the updating time range is a time range which is greater than the last updating time and less than or equal to the current clock time.
6. The method of claim 5, further comprising, after the obtaining the updated error code and the error description information:
and taking the current clock time as the last updating time and saving the current clock time into the updating time data set.
7. The method of claim 4, further comprising, after the updating the first error data set based on the error code and the error description information:
updating a second error data set saved in a local file based on the error code and the error description information.
8. An apparatus for prompting error description information, comprising a coroutine module, wherein the coroutine module comprises:
an intercepting error message unit for intercepting the first error message;
an error code acquiring unit, configured to analyze the first error message and acquire a first error code;
an obtain error description information unit configured to retrieve a first error data set based on the first error code, and obtain first error description information;
and the prompting unit is used for prompting the first error description information in a user interface.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
10. An electronic device, comprising:
one or more processors;
storage means for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to carry out the method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911006724.6A CN110928715A (en) | 2019-10-22 | 2019-10-22 | Method, device, medium and electronic equipment for prompting error description information |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911006724.6A CN110928715A (en) | 2019-10-22 | 2019-10-22 | Method, device, medium and electronic equipment for prompting error description information |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110928715A true CN110928715A (en) | 2020-03-27 |
Family
ID=69849059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911006724.6A Pending CN110928715A (en) | 2019-10-22 | 2019-10-22 | Method, device, medium and electronic equipment for prompting error description information |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110928715A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148596A (en) * | 2020-09-15 | 2020-12-29 | 北京百度网讯科技有限公司 | Method and device for generating error reporting content of deep learning framework |
CN112446011A (en) * | 2020-12-02 | 2021-03-05 | 视若飞信息科技(上海)有限公司 | Watermark identification and error code copyright judgment method |
CN113868007A (en) * | 2021-10-09 | 2021-12-31 | 中国建设银行股份有限公司 | Method for determining component fault influence range and related device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015101143A1 (en) * | 2013-12-30 | 2015-07-09 | Tencent Technology (Shenzhen) Company Limited | Method and system for converting error message into error prompt |
CN107193574A (en) * | 2016-03-14 | 2017-09-22 | 北京新媒传信科技有限公司 | A kind of method and apparatus for showing miscue information |
CN110347560A (en) * | 2019-07-19 | 2019-10-18 | 深圳前海微众银行股份有限公司 | Abnormal prompt method, apparatus, system, equipment and the medium of big data product |
-
2019
- 2019-10-22 CN CN201911006724.6A patent/CN110928715A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2015101143A1 (en) * | 2013-12-30 | 2015-07-09 | Tencent Technology (Shenzhen) Company Limited | Method and system for converting error message into error prompt |
CN107193574A (en) * | 2016-03-14 | 2017-09-22 | 北京新媒传信科技有限公司 | A kind of method and apparatus for showing miscue information |
CN110347560A (en) * | 2019-07-19 | 2019-10-18 | 深圳前海微众银行股份有限公司 | Abnormal prompt method, apparatus, system, equipment and the medium of big data product |
Non-Patent Citations (1)
Title |
---|
黑马程序员: "Python实战编程 从零学Python", 中国铁道出版社 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112148596A (en) * | 2020-09-15 | 2020-12-29 | 北京百度网讯科技有限公司 | Method and device for generating error reporting content of deep learning framework |
CN112148596B (en) * | 2020-09-15 | 2024-03-22 | 北京百度网讯科技有限公司 | Method and device for generating error reporting content of deep learning framework |
CN112446011A (en) * | 2020-12-02 | 2021-03-05 | 视若飞信息科技(上海)有限公司 | Watermark identification and error code copyright judgment method |
CN112446011B (en) * | 2020-12-02 | 2023-06-02 | 视若飞信息科技(上海)有限公司 | Watermark identification and error code copyright judgment method |
CN113868007A (en) * | 2021-10-09 | 2021-12-31 | 中国建设银行股份有限公司 | Method for determining component fault influence range and related device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111090536B (en) | Method, device, medium and electronic equipment for acquiring memory leakage information | |
CN110928715A (en) | Method, device, medium and electronic equipment for prompting error description information | |
CN110851139B (en) | Method and device for checking codes and electronic equipment | |
CN110851204B (en) | Application starting method and device and application packaging method and device | |
CN111309747A (en) | Data synchronization method, system and device | |
CN111274503B (en) | Data processing method, device, electronic equipment and computer readable medium | |
CN112015816A (en) | Data synchronization method, device, medium and electronic equipment | |
CN113835992A (en) | Memory leak processing method and device, electronic equipment and computer storage medium | |
CN111625422B (en) | Thread monitoring method, thread monitoring device, electronic equipment and computer readable storage medium | |
CN111163336B (en) | Video resource pushing method and device, electronic equipment and computer readable medium | |
CN111367720A (en) | Data protection method and device, electronic equipment and computer readable storage medium | |
CN112015746B (en) | Data real-time processing method, device, medium and electronic equipment | |
CN111459893B (en) | File processing method and device and electronic equipment | |
CN110879818B (en) | Method, device, medium and electronic equipment for acquiring data | |
JP2023527174A (en) | Video special effect arrangement method, video special effect arrangement device, device and storage medium | |
CN113138883A (en) | Message processing method and device, storage medium and electronic equipment | |
CN112817701A (en) | Timer processing method and device, electronic equipment and computer readable medium | |
CN113176937A (en) | Task processing method and device and electronic equipment | |
CN111538577A (en) | Program execution control device and method, terminal and storage medium | |
CN114385096A (en) | Display control method, device, terminal and storage medium | |
CN111580940A (en) | Method and device for processing multiple inter-process processes of application program and electronic equipment | |
CN111209042B (en) | Method, device, medium and electronic equipment for establishing function stack | |
CN111309323A (en) | Parameter initialization method and device and electronic equipment | |
CN111241852A (en) | File translation method, device, terminal and storage medium | |
CN114116746B (en) | Multisystem data storage method, multisystem data storage device, medium and electronic equipment |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200327 |