Method and device for adding exception handling codes

An exception handling and code technology, applied in the direction of code compilation, program code conversion, electrical and digital data processing, etc., can solve problems such as application interruption, reduce code writing efficiency, affect development progress and application robustness, etc., to improve efficiency, guarantee Robustness, avoiding the effect of not adding exception handling code

Pending Publication Date: 2021-06-11
CHINA CONSTRUCTION BANK
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, this way of developers manually adding exception handling codes when writing codes not only reduces the efficiency of writing codes, but also in the case of cooperative development, not all developers have the habit of adding exception handling codes. If a developer does not add exception handling code in the code written, it may cause the application to stop running when an error occurs, which will affect the development progress and the robustness of the developed application

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method and device for adding exception handling codes
  • Method and device for adding exception handling codes
  • Method and device for adding exception handling codes

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0073] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0074] It should be noted that, in the case of no conflict, the embodiments of the present invention and the technical features in the embodiments can be combined with each other.

[0075] figure 1 is a schematic diagram of main steps of a method for adding exception handling codes according to an embodiment of the present invention.

[0076] Such as figure 1 As shown, ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method and device for adding exception handling codes, and relates to the technical field of automatic programming. A specific embodiment of the method comprises the following steps: analyzing an original code to obtain grammar information of the original code; according to the grammar information, determining whether a target code of a to-be-added exception processing code exists in the original code or not; when it is determined that the target code exists in the original code, adding an exception handling code in the target code; and updating the original code to enable the original code to comprise the exception handling code. According to the implementation mode, the function of automatically adding the exception handling codes is achieved, the code writing efficiency is improved, the situation that developers do not add the exception handling codes is avoided, and then the development progress and the robustness of developed applications are guaranteed.

Description

technical field [0001] The invention relates to the technical field of automatic program design, in particular to a method and device for adding exception handling codes. Background technique [0002] In the process of developing an application, it is inevitable that various errors will occur when the code written by the developer is running, and the execution of the code will be interrupted at this time. To this end, many developers will add exception handling code when writing code, so that when an error occurs during the operation of the code, the execution will not be interrupted, but relevant information about the error will be thrown, so that developers can better troubleshoot the problem. [0003] However, this way of developers manually adding exception handling codes when writing codes not only reduces the efficiency of writing codes, but also in the case of cooperative development, not all developers have the habit of adding exception handling codes. If a develope...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F8/41
CPCG06F8/427G06F8/43
Inventor 孟繁贵梁锐
Owner CHINA CONSTRUCTION BANK
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products