What is manipulation except?
Handling, except for a common programming language construct that allows programs to identify and elegantly process the errors they can encounter while running. It works by changing the flow of the program from normal design to a specific set of alleviating actions when an error is found. The programmer can create specific sets of actions that are induced when some errors occur. Finding and manipulation, except for the program, does not necessarily have to be a fatal event; Sometimes it is possible for the program to continue after processing exceptions. In this case, most programming languages, including Java and C ++, have specific keywords and control structures that can be placed in error processing code. These structures can handle a wide range of errors and with proper maintenance it is often possible for the programmer to predict possible errors for a particular piece of code. For example, when analyzing the numeric input, you can immediately determine whether a piece of data is non-numeric if the correct test and exception are set. If you run outE to the exception, the operator catches it, which immediately tells the program that the entry is invalid. What happens below depends on how the rest of the program is structured; It may end, or it could continue and simply ignore the invalid input.
correct processing of exceptions does not guarantee the flawless performance of the program. Also, it does not guarantee that the program will stop after finding an error and does not guarantee that the program will continue. For correct processing of errors, the programmer must use manipulation except in conjunction with common sense and careful attention to details. Ideally, the correct processing of the error program avoids the most serious types of errors, such as invalid memory access, while providing informative reports on repairable problems such as invalid input or unexpected program problems.
manipulation except to capture a mistake called "run time" errors; Does not guarantee thatE Code is not without errors or errors of syntax. After handling errors in the code, it does not guarantee that the code is correct. It is possible that errors processing missing errors in code, and even the best error catching is rarely reliable. After tuning is completed, the presence of manipulation, except for much easier code maintenance and future tuning if necessary.