Exception handling method and device and software system
A technology of exception handling and processing methods, applied in the field of computer software systems, can solve the problems of scattered exception handling codes, low reusability, complex processing, etc., to reduce workload and error opportunities, high reusability, and streamline programs The effect of the code
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0033] figure 1 The implementation flow of the exception handling provided by the first embodiment of the present invention is shown, and the details are as follows:
[0034] In the embodiment of the present invention, it is first necessary to explain the exception handling interface class throughout the embodiment of the present invention. One is the exception handling interface Handler customized by programmers according to the type of exception they need to solve. The other is the default exception handling interface DefaultHandler (such as figure 2 shown).
[0035] In step S101, the exception is marked, and the exception handling interface required to handle the exception is marked.
[0036] In the embodiment of the present invention, the exception label refers to the exception handling interface Handler or the default exception handling interface DefaultHandler marked with Java's own labeling function through the exception labeling class ExceptionHandler.
[0037] Th...
Embodiment 2
[0066] image 3 The implementation flow of the exception handling provided by the second embodiment of the present invention is shown, and the details are as follows:
[0067] In step S301, the exception is marked, and the exception handling interface required to handle the exception is marked;
[0068] In step S302, after the system throws an exception, it uniformly captures the exceptions marked with exceptions;
[0069] In step S303, it is judged whether there is a corresponding relationship between the exception and the exception handling interface, if yes, step S305 is directly executed, otherwise step S304 is executed first, and then step S305 is executed;
[0070] In step S304, find the corresponding exception handling interface according to the exception label and store the corresponding relationship between the exception and the exception handling interface;
[0071] In step S305, by reading the corresponding relationship between the exception and the exception hand...
Embodiment 3
[0076] Figure 4 The implementation flow of the exception handling provided by the third embodiment of the present invention is shown, and the details are as follows:
[0077] In step S401, the exception is marked, and the exception handling interface required to handle the exception is marked;
[0078] In step S402, after the system throws an exception, it uniformly captures the exceptions marked with exceptions;
[0079] In step S403, it is judged whether there is a corresponding relationship between the exception and the exception handling interface, if yes, step S305 is directly executed, otherwise step S304 is executed first, and then step S305 is executed;
[0080] In step S404, find the corresponding exception handling interface according to the exception label and store the corresponding relationship between the exception and the exception handling interface;
[0081] In step S405, by reading the corresponding relationship between the exception and the exception hand...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com