Eureka AIR delivers breakthrough ideas for toughest innovation challenges, trusted by R&D personnel around the world.

Exception request processing method and device, electronic equipment and storage medium

A request processing and storage medium technology, applied in program control devices, electrical digital data processing, software design, etc., can solve problems such as increasing the workload of development and maintenance, and achieve the effect of reducing the difficulty of development

Pending Publication Date: 2020-05-12
BEIJING MININGLAMP SOFTWARE SYST CO LTD
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

At this point, there will be two problems: if separate error capture and user prompts are performed within each ajax request, it will increase the workload of development and maintenance

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 request processing method and device, electronic equipment and storage medium
  • Exception request processing method and device, electronic equipment and storage medium
  • Exception request processing method and device, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] In order to make the above objects, features and advantages of the present invention more comprehensible, specific embodiments of the present invention will be described in detail below in conjunction with the accompanying drawings.

[0038] Apparently, the described embodiments are only some of the embodiments of the present invention, but not all of them. The components of the embodiments of the invention generally described and illustrated in the figures herein may be arranged and designed in a variety of different configurations. Accordingly, the following detailed description of the embodiments of the invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without making creative efforts belong to the protection scope of the present invention. ...

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 provides an exception request processing method and device, electronic equipment and a storage medium. The method comprises the steps of intercepting an Ajax request returned by a serverthrough an Axios plug-in; when the returned Ajax request is an exception request, performing unified processing on the exception request to generate prompt information; and displaying the prompt information. According to the scheme provided by the invention, all Ajax error information is subjected to centralized and unified processing, and the configuration of specific error codes can be added ordeleted according to the actual situation. The data returned by the server is judged, if the readability of the information returned by the server is relatively high, the information is displayed, and if the readability of the data returned by the server is relatively low, replacement display is performed by using a general prompt configured at a front end. According to the technical scheme provided by the invention, a universal file can be independently extracted, so that the development difficulty is reduced.

Description

technical field [0001] The present invention relates to the technical field of front-end development, in particular, to an abnormal request processing method, device, electronic equipment and storage medium. Background technique [0002] The web application system will involve the interaction between the front and back ends, and ajax requests are the main technical means for the interaction between the front and back ends. As the scale of the system becomes larger and larger, the number of ajax requests will continue to increase. There will be many situations in which the status returned by the request can be roughly divided into two situations: successful request and failed request. For abnormal requests, you usually need to first Take the capture and then make an effective user prompt. At this time, two problems will be encountered: if separate error capture and user prompts are performed inside each ajax request, the workload of development and maintenance will be increa...

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): G06F8/20G06F9/445G06F11/32
CPCG06F8/20G06F9/44526G06F11/327
Inventor 魏龙李文杨航
Owner BEIJING MININGLAMP SOFTWARE SYST 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
Eureka Blog
Learn More
PatSnap group products