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

Exception handling method based on strategy configuration

A technology for exception handling and policy configuration, applied in program control devices, software design, etc., can solve the problems of complex exception handling and unfavorable development, and achieve the effect of simplifying the processing process, improving development efficiency, and reducing complexity

Active Publication Date: 2017-03-08
INSPUR COMMON SOFTWARE
View PDF2 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the exception is handled only according to the type of the exception, the exception handling will become complicated, which is not conducive to efficient development

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
  • Exception handling method based on strategy configuration
  • Exception handling method based on strategy configuration

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0022] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0023] as attached figure 1 As shown, the present invention discloses an exception handling method based on policy configuration. Based on the configured policy, the dynamic matching process between captured exception and handling policy is realized, the exception handling process is simplified, and the flexibility of exception handling is provided.

[0024] The invention is based on the exception capturing and processing mechanism, adopts the form of configuration, and dynamically realizes the matching between the exception and the processing strategy. The invention enables callers to flexibly handle exceptions, reduces the complexity of exception handling in codes, and improves development efficiency.

[0025] Its implementation is based on the following steps and content:

[0026] Firstly, the exception information is encapsulated. When th...

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 an exception handling method based on strategy configuration. The method comprises the following steps: encapsulating the exception into context information for exception handling when a service caller captures the exception; transmitting the encapsulated context information to an exception handling engine to performing the exception handling; handing the exception context to an exception analysis engine when the exception handling engine receives the exception context, thereby analyzing the context information; after the analysis is finished, the exception handling strategy engine calling different strategy implementations to realize the handling according to the introduced strategy name; calling a strategy configuration analysis engine to analyze the configured strategy configuration when the strategy implementation is handled, and returning the result; calling a strategy execution engine to execute the corresponding exception handling according to a structure returned by the strategy analysis engine. Compared with the prior art, the exception handling method based on strategy configuration is used for dynamically matching and processing the captured exception and the handling strategy, the exception handling process is simplified, the exception handling flexibility is improved, and the practicability is strong.

Description

technical field [0001] The invention relates to the technical field of computer software, in particular to an exception handling method based on policy configuration. Background technique [0002] With the continuous deepening of software technology research and the wide application of network technology, enterprise management software such as Enterprise Resource Planning (ERP) has also been widely used. However, as more and more modules are managed by the enterprise, and the managed business becomes more and more complex, its exception handling becomes particularly important. [0003] Writing any .NET program will use exception handling. The operations of exception handling can be divided into three categories: raising exceptions, catching exceptions, and handling exceptions. The errors we usually refer to actually refer to program exceptions whose meaning is clearly identified in the program, and are raised by us through exceptions in the program. If the exception is ha...

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
IPC IPC(8): G06F9/44
CPCG06F8/24
Inventor 刘建华周祥国王延东
Owner INSPUR COMMON SOFTWARE
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