Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method and system for exception handling in Java engineering project development

An exception handling and engineering project technology, applied in the field of exception handling in Java engineering project development, can solve problems such as inconsistent team requirements, increased code volume, and uneven technical level, so as to achieve clear code logic and improve reusability performance, improve readability

Inactive Publication Date: 2015-02-04
INSPUR BEIJING ELECTRONICS INFORMATION IND
View PDF4 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

In the process of Java project development, due to the uneven technical level and inconsistent team requirements, most projects use checking exceptions to process code logic, resulting in reduced Java code readability, increased code volume, and confusing code logic. , the programming style is not uniform, etc., which reduces the readability and reusability of the program

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 system for exception handling in Java engineering project development
  • Method and system for exception handling in Java engineering project development
  • Method and system for exception handling in Java engineering project development

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solutions of the present invention will be described in detail below in conjunction with the accompanying drawings and preferred embodiments. It should be understood that the following examples are only used to illustrate and explain the present invention, but not to limit the technical solution of the present invention.

[0031] Such as figure 1 Shown, represented the flow process of the method embodiment of exception handling in the Java engineering project development of the present invention, comprises the following steps:

[0032] 110: Define program exception subclasses and business exception subclasses in the runtime exception class;

[0033] Among them, program exceptions are generated by programs due to data transmission and are avoidable exceptions; business exceptions are abnormal streams that are fed back to web users due to business needs and are often used to carry information such as error codes .

[0034] 120: During the project developm...

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 a system for exception handling in Java engineering project development. The method comprises the following steps: defining a program exception subclass and a business exception subclass in a run-time exception class; throwing exceptions belonging to the program exception subclass and the business exception subclass to an upper level by a low level below a top level during the engineering project development; intensively capturing the exceptions, which belong to the program exception subclass and the business exception subclass and are thrown by the low level, by the top level, and converting into corresponding prompt information after the captured exceptions are processed. According to the method and the system disclosed by the invention, the program exception subclass and the business exception subclass are defined in the run-time exception class; exception detection is not performed by the low level, and a corresponding try catch block is correspondingly cancelled, so that the code of the top level and the code of the low level are very simple, code logics are clear, the programming style can be unified, and the reusability of the codes is improved.

Description

technical field [0001] The invention relates to Java engineering project software development technology, in particular to a method and system for exception handling in Java engineering project development. Background technique [0002] In the Java project development process, due to business needs, various types of exception handling are defined during the development process. The definition of exception is usually used to prompt the error message of the program, and it can also be used to prompt the unexpected operation caused by abnormal business operation; it is very important to the program development, debugging, secondary development and the ease of use of the program. effect. This is also one of the characteristics of Java programming. In short, the correct use of the exception handling mechanism helps to improve the robustness of the program, which means that the program can run normally in most cases and return the expected correct results; if it encounters an ab...

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): G06F11/36
Inventor 李新虎胡玉鹏于辉刘正伟
Owner INSPUR BEIJING ELECTRONICS INFORMATION IND
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products