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

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 separate exception capture code logic and business code logic, and effectively solve the blocking problem of exception capture code logic on business code logic

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

Embodiment Construction

[0028] Exemplary embodiments of the present invention are described below in conjunction with the accompanying drawings, which include various details of the embodiments of the present invention to facilitate understanding, and they should be regarded as exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the invention. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.

[0029] It should be noted that, in the case of no conflict, the embodiments of the present invention and the features in the embodiments can be combined with each other.

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

[0031] Web: The global ...

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 Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products