Advertisement



< Prev
Next >



Python - Raise Keyword





In Python, you may use raise keyword when you explicitly want to raise/throw an exception. The keyword raise is followed by either an object of an exception class or the name of an exception class, that you want to raise to raise an exception for. Using the raise keyword, an exception can be explicitly raised from within the two places -
Let us take a look at the syntax to use raise keyword.




Please Subscribe

Please subscribe to our social media channels for daily updates.


Decodejava Facebook Page  DecodeJava Twitter Page Decodejava Google+ Page




Advertisement

Notifications



Please check our latest addition

PYTHON


Advertisement