WEBVTT 00:01.190 --> 00:01.750 Ransom. 00:01.760 --> 00:04.810 Unusual condition occurs in our program. 00:04.810 --> 00:11.810 It's called exception like we want to read a file but the file is not present until defined location 00:13.030 --> 00:15.880 or the value of the variable is not what was expected. 00:17.760 --> 00:21.270 Let's see how to handle an exception. 00:24.500 --> 00:29.180 In Baton try and accept. 00:29.180 --> 00:31.470 Blocks are used to handle the exception 00:35.170 --> 00:38.320 right. 00:39.950 --> 00:44.210 Text File equal to open 00:48.050 --> 00:49.460 begin or file 01:17.810 --> 01:19.070 message. 01:23.090 --> 01:23.950 Accept 01:32.510 --> 01:34.500 while does not. 01:41.350 --> 01:48.610 So here we are telling the compiler to open this file. 01:48.660 --> 01:52.950 But what a file is not present at this location has deleted the file. 01:54.860 --> 02:04.540 Lexi wrote to endless. 02:05.390 --> 02:15.030 One we executed this program the save file does not exist as we have already deleted it. 02:18.430 --> 02:28.450 So that's all exception is raised in. 02:28.580 --> 02:31.180 Next we'll see how to raise our own exception.