Method for popping up custom error by using modal dialog box
A dialog box and custom technology, applied in the direction of user interface execution, program control device, software design, etc., can solve the problems of using modal dialog box to pop up custom errors, garbled error messages, etc., and achieve the effect of friendly error message prompts
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0027] Such as figure 1 Shown, the present invention adopts following steps:
[0028] Step 1. Define an exception class, inherit RuntimeException, and refactor its construction method; the specific steps described are:
[0029] (1) Create a CustomerException custom exception class that inherits the RuntimeException class in the project;
[0030] (2) Define some common default error codes, such as DEFAULT_ERROR_CODE, DEFAULT_SUCC_CODE, etc., and the variable error code variable errorCode;
[0031] (3) Add some construction methods with error codes.
[0032] Step 2: Add an exception parser in the system configuration file springmvc.xml, configure the capture method of exception information and the page path after the jump; the specific configuration of the exception parser has the following steps:
[0033] (1) Define the SimpleMappingExceptionResolver exception parser;
[0034] (2) Configure the default exception handling page defaultErrorView error value is error, define ex...
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