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

Exception handling method and device, electronic equipment and storage medium

A technology of exception handling and electronic equipment, applied in the network field, can solve problems such as abnormal exit of programs, achieve the effect of reducing communication costs, reducing complexity, and improving operating efficiency

Pending Publication Date: 2019-07-23
SHANGHAI LAZHASI INFORMATION TECH
View PDF3 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] The purpose of the embodiments of the present invention is to provide an exception handling method, device, electronic device and non-volatile storage medium, which are used to solve the problem of triggering a preset error type due to a missing variable and being assigned a value of NULL, thereby causing the program to exit abnormally question

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0023] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention more clear, various implementation modes of the present invention will be described in detail below in conjunction with the accompanying drawings. However, those of ordinary skill in the art can understand that, in each implementation manner of the present invention, many technical details are provided for readers to better understand the present application. However, even without these technical details and various changes and modifications based on the following implementation modes, the technical solution claimed in this application can also be realized.

[0024] The first embodiment of the present invention relates to an exception handling method. By assigning the variable to a preset value, when obtaining the value of the variable, the program will not exit abnormally due to the assignment of the variable to NULL, which reduces communication costs and code r...

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 relates to the technical field of networks, in particular to an exception handling method and device, electronic equipment and a nonvolatile storage medium. The exception handling method comprises the steps of acquiring the content of front-end error reporting; determining that the error reporting type is a preset error type according to the error reporting content,and obtaining a variable corresponding to the preset error type from the error reporting content; and assigning a variable corresponding to the preset error type as a preset value. According to the method and the device, the variable is assigned to the preset value, so that when the value of the variable is obtained, program exception quitting caused by the fact that the variable is assigned to be the NULL is avoided, the communication cost and code redundancy are reduced, the code complexity is reduced, and the code running efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of network technologies, and in particular to an exception handling method, device, electronic equipment, and storage medium. Background technique [0002] At present, in the process of front-end and back-end interaction, the back-end transmits a lightweight data exchange format (JavaScript Object Notation, JSON) string to the front-end through the web development technology (AJAX) for creating interactive web applications, and the front-end converts JSON The string becomes an object of JSON type again, and each required field value is conveniently obtained through destructuring assignment. During this process, if an attempt is made to obtain the value of a field in an object, and the object is missing and assigned a value of NULL, an exception of a preset error type will be triggered and the program will exit. [0003] The inventor found that there are at least the following problems in the...

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/448G06F8/30G06F11/36G06F11/30
CPCG06F9/449G06F8/315G06F11/366G06F11/302
Inventor 徐凯姮
Owner SHANGHAI LAZHASI INFORMATION TECH
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