Web script exception handling method and device

An exception handling and scripting technology, applied in the computer field, can solve problems such as business code logic blocking, achieve the effects of improving coverage and processing efficiency, solving blocking problems, and improving reliability

Inactive Publication Date: 2018-01-26
BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD +1
View PDF2 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the embodiment of the present invention provides a method and device for handling exceptions in Web scripts, so as to be able to highly

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
  • Web script exception handling method and device
  • Web script exception handling method and device
  • Web script exception handling method and device

Examples

Experimental program
Comparison scheme
Effect test

Example Embodiment

[0028] The following describes exemplary embodiments of the present invention with reference to the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and should be regarded as merely exemplary. Therefore, those of ordinary skill in the art should realize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of the present invention. Likewise, for clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0029] It should be pointed out that the embodiments of the present invention and the characteristics of the embodiments can be combined with each other if there is no conflict.

[0030] Before describing the embodiments of the present invention in detail, firstly, some technical terms involved in the embodiments of the present invention will be described.

[0031] Web: T...

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 embodiment of the invention discloses a Web script exception handling method and device, relating to the technical field of a computer. The method comprises the following steps: intercepting an exceptional event handler method in a Web script, and rewriting the exceptional event handler method to capture and handle exceptions according to the rewritten exceptional event handler method; intercepting a callback method in the Web script, and rewriting the callback method; and injecting exception capture handling logic into the rewritten callback method to capture and handle the exceptions according to the exception capture handling logic. Through the steps implemented by the invention, exception capture code logic and service code logic can be highly separated, and the blocking of the exception capture code logic to the service code logic can be effectively solved, and the reliability of Web script exception handling can be improved.

Description

technical field [0001] The present invention relates to the field of computer technology, in particular to a method and device for handling exceptions in Web scripts. Background technique [0002] With the development of Web (Global Wide Area Network, also called the World Wide Web) technology, more and more attention is paid to the interactive experience based on the front end. Since a lot of business logic previously realized through the back-end has been transferred to the front-end, the front-end business logic has become more and more complex, and the number of abnormalities on the front-end web pages has also increased accordingly, resulting in an unfriendly interactive experience on the front-end pages. [0003] In the prior art, there is actually no systematic and effective solution for the exception capture of the front-end page. In the process of realizing the present invention, the inventors found that there are at least the following problems in the prior art: t...

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): H04L29/08G06F17/30
Inventor 胡雄伟
Owner BEIJING JINGDONG SHANGKE INFORMATION TECH CO LTD
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