WEBVTT 00:00.810 --> 00:04.720 Come back guys and this little there to talk about exception handling. 00:04.820 --> 00:09.970 So before starting exception handling logistics small example about exception. 00:10.090 --> 00:16.400 So we will be comfortable and then we can start handling that exception like if I want to do I then 00:16.410 --> 00:22.750 by then you can say what matters are being taught in just asking what our practice was let us use our 00:22.750 --> 00:24.390 domino for a few minutes. 00:24.660 --> 00:27.770 And I tried to do then by zero. 00:27.910 --> 00:29.190 You can say I got my error. 00:29.200 --> 00:31.040 That is the reason. 00:31.300 --> 00:37.780 And this is one of the subplots off exception class my for trying to lose something is maybe I tried 00:37.820 --> 00:44.950 to define it as a lisp and then decide on this if I tried to perform some method which doesn't exist 00:45.040 --> 00:47.030 let's see what we are going to get. 00:48.840 --> 00:51.910 You can see the error of attribute error. 00:51.930 --> 00:54.600 So this list object has no attributes. 00:54.630 --> 00:56.980 This is the a number that I have given. 00:57.000 --> 00:59.340 So that means this is the attribute area. 00:59.520 --> 01:04.320 And this attitude is also a subclass of exception base class. 01:04.560 --> 01:07.100 So that's how we have to deal with things. 01:07.100 --> 01:11.230 So before doing anything is make sure you try to use bulletins. 01:11.430 --> 01:13.590 So let me do that for that. 01:13.590 --> 01:15.840 Let me try to get one more error. 01:16.080 --> 01:18.360 You can see where I try to run. 01:18.450 --> 01:23.130 And then Belden's I'm getting on the matter because this is not defined. 01:23.280 --> 01:25.090 So let me put it first. 01:25.840 --> 01:33.360 And non-hate on that you will be able to get a long list of classes object and you can see this is this 01:33.360 --> 01:36.120 exception class than exception class. 01:36.160 --> 01:42.550 Then we have argument together which have all flow floating point and zero reason and then we had several 01:42.550 --> 01:48.000 other letters mindif you have access to all these information with just a single Come on. 01:48.040 --> 01:54.720 You can also run these tables or in your item with a simple C'mon just type python. 01:54.780 --> 02:01.060 And when I do a python shell in your terminal it's and now you can do exactly the same things that we 02:01.070 --> 02:03.470 are trying to perform and by time domino. 02:03.630 --> 02:09.000 So if I tried to then divide by zero I would be getting some error. 02:09.190 --> 02:13.870 So I know this for something helpful for you to understand about base class. 02:13.870 --> 02:17.990 Then we have acceptant class and then we have these type of classes. 02:18.190 --> 02:23.470 So this will help you define our exact exception and we'll be handling that.