raise statement => you can raise exceptions
You need to specify the type of the exception raised.
Exceptions can be raised with arguments that give detail about them
In except blocks , the raise statement can be used without arguments to re-raise whatever exception occurred.
You can also used the raise statement outside the except block
No comments:
Post a Comment