Excellent exception processing method
An exception handling and exception technology, applied in the direction of responding to errors, etc., can solve problems such as increasing the difficulty of system maintenance, increasing the amount of platform code, and reducing research and development efficiency, so as to achieve clear business, reduce the amount of development, and improve development efficiency.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] Such as figure 1 As shown, when the platform code throws an exception, the present invention converts the exception into the exception class A of the RuntimeException type, but does not do any processing, but throws it outward again; the platform reconfigures the Struts2 interceptor and sets it as the default interceptor, Catch the exception of type A in the interceptor and handle it uniformly; when the exception handling mechanism changes, just change the method of the interceptor.
[0017] The method includes steps such as:
[0018] Step 1, first implement the custom exception class WebException of RuntimeException;
[0019] Step 2. In the business code, convert the captured exception into a WebException type exception and throw it out;
[0020] Step 3, implement the interceptor Lo its Interceptor of struts2, and set it as the default interceptor;
[0021] Step 4, implement the intercept method of Lo's Interceptor, and capture the exception of WebException in the i...
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