Back to Browse

Input Validation Using try catch in a Loop

10.6K views
Mar 25, 2019
19:27

Level: Basic/Intermediate Series: Programming Tutorials Length of video: 19 minutes Prerequisites: Handling Exceptions with try catch Purpose of tutorial: This video is part of a series of tutorials that serve as an introduction to programming topics. This video provides an explanation how to use the try-catch statement for input validation. The technique presented here works like this: The try-catch statement is placed inside a loop. After intercepting an exception, the program is allowed to continue executing. This gives the program an opportunity to "try" again after the exception has been caught.

Download

1 formats

Video Formats

360pmp427.5 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Input Validation Using try catch in a Loop | NatokHD