Hi, everyone.
Okay.
So in this blast, we will do what is exception handling.
Okay.
So.
Actually what is an exception.
See your hold me some things.
Give me errors a right.
Then we put the code on life.
We may want to.
You know, if there is an error that is coming.
Suppose there is a beat with better Lord of Souls.
Okay, maybe for every do it is executing then.
Okay.
Maybe for one or two rules it may give an error saying that some string is not matching or some conversion
is not proper from string to indicate forgiveness.
So sometimes when the that was on the light or deployments of work, you don't want to show the users
using your website or using your apps that this particular event has come.
Okay.
So in such cases we see and I'm handy, we'll give you a to handle it means for that particular rule
where it is giving an error, we just leave and then continue execution for the remaining rules.
Okay.
So Python provides two very important features to handle any unexpected events in your python program.
Okay.
And add debugging capability.
So we'll get this is called section handling.
Okay.
So exception is what it is.
But in this there are so many things like exception.
Work is an exception.
Exception is the best of all exceptions.
Okay.
And then of these in which we can handle these errors, for example, you have at the beginning, again,
for example, you have overflow.
A memory might overflow with data.
Okay.
Sometimes you have zero division error when you try to divide it by.
Sometimes you have end of the failure.
Suppose you are reading the file and you finished reading the files.
Okay.
So that type of error sometimes you may have see some environment there that is coming from the python
in water.
Sometimes you may have some syntax error for a particular row because of longer data.
Okay.
Sometimes you may have value errors or runtime error.
So such type of failures we use what you see.
Exception.
Okay, let's go back to the code.
So exception handling in Python.
If a part of your code made to an exception would take in a tree block.
Okay.
Right.
Or accept the blocks.
Right.
For.
That is a far looking.
The art love when I thought being session informants looks okay and you have except we don't look at
the code now just look at the statement that I have written.
Code.
We have seen the coordinate.
Okay.
When an exception is to by the machine, for example, an error instance, we have to try to block the
end any we have to continue the execution.
Okay.
So how will you do it?
It is done using the acceptable.
Okay.
So the interpreter looks for that.
The block following it means we like it.
Right.
Except that part of it.
Okay.
It will not execute the rest of the court in that type.
Okay.