Browser error reporting method and browser error reporting device based on interceptor
A browser and interceptor technology, applied in the computer field, can solve problems such as user inconvenience and achieve the effect of preventing data loss
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0037] The first embodiment of the present invention proposes an interceptor-based browser error reporting method, the process of which is as follows figure 1 shown, including:
[0038] Step 101, obtain the return information of the browser;
[0039] Step 102, when the returned information is error information, intercept the returned information.
[0040] In the embodiment of the present invention, by intercepting the error message of the browser, the browser cannot receive the error message returned when accessing the server, so that the browser will not jump to the preset error page. This can effectively prevent the loss of data entered in the browser caused by the browser jumping to the error reporting page, and it can also solve the problem that the browser can only return to the previous page by pressing the back button after jumping to the "this page cannot be displayed" page The problem caused by the complicated operation of the user.
Embodiment 2
[0042] The second embodiment of the present invention is improved on the basis of the aforementioned first embodiment, and its process is as follows figure 2 shown, including:
[0043] Step 201. Obtain the format of the error message returned by the server, and set a corresponding error message according to the format of the error message.
[0044] Because the embodiment of the present invention can be applied not only when the browser accesses common standard webpages, but also when accessing server-side programs to exchange data with the server-side programs, there may be many types of error messages returned by the server-side. Therefore, it is necessary to obtain the format of the error message returned by the server in advance, so as to determine whether the returned message from the server is an error message. Of course, this step is only an optional step in the embodiment of the present invention, and it can also be realized by setting the error message format of the ...
Embodiment 3
[0060] The third embodiment of the present invention proposes an interceptor-based browser error reporting device, the structure of which is as follows image 3 shown, including:
[0061] Obtaining module 1, configured to obtain the return information of the browser;
[0062] The interception module 2 is configured to intercept the returned information when the returned information is error information.
[0063] In the embodiment of the present invention, by intercepting the error message of the browser, the browser cannot receive the error message returned when accessing the server, so that the browser will not jump to the preset error page. This can effectively prevent the loss of data entered in the browser caused by the browser jumping to the error reporting page, and it can also solve the problem that the browser can only return to the previous page by pressing the back button after jumping to the "this page cannot be displayed" page The problem caused by the complicate...
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