#35 | Python Beginners Tutorials | User Defined Exception | Custom Exception in Python Tamil

Published: 01 January 1970
on channel: SANTRA TECHSPOT
10,622
245

User Defined Exception or Custom Exception in Python Tamil

Python throws errors and exceptions, when there is a code gone wrong, which may cause program to stop abruptly. Python also provides exception handling method with the help of try-except. Some of the standard exceptions which are most frequent include IndexError, ImportError, IOError, ZeroDivisionError, TypeError and FileNotFoundError. A user can create his own error using exception class.

Creating User-defined Exception



Programmers may name their own exceptions by creating a new exception class. Exceptions need to be derived from the Exception class, either directly or indirectly. Although not mandatory, most of the exceptions are named as names that end in “Error” similar to naming of the standard exceptions in python

Deriving Error from Super Class Exception

Super class Exceptions are created when a module needs to handle several distinct errors. One of the common way of doing this is to create a base class for exceptions defined by that module. Further, various subclasses are defined to create specific exception classes for different error conditions.



c tutorial link -    • C Programming Tutorials in Tamil | Pa...  

oops link -    • Learn Object Oriented Programming in ...  

html5 link -    • 1# Introduction to HTML5 programming ...  

css3 link -    • PART-1 INTRODUCTION TO  CSS3 AND ITS ...  

javascript link -    • PART-1 INTRODUCTION TO  CSS3 AND ITS ...  

python link    • #1 - Python Tutorial in Tamil | Intro...  

c tricks -    • ADD TWO NUMBERS WITHOUT USING ARITHME...  

c interview questions -    • Find The Output Of the Program in Tamil  

sample program -    • HOW TO WRITE C PROGRAM FOR BASIC ADDI...  

c++ program -    • PART-01 INTRODUCTION TO C++ PROGRAMMI...  

vb6 tutorial -    • Visual Basic 6 Tutorial in Tamil  

__
like our face book page..
  / santratechspot  
--------------------------------------------------------------------------------
send request our channel official facebookprofile...
  / santra.techspot.5  
---------------------------------------------------------------------------------

#santratechspot


On this page of the site you can watch the video online #35 | Python Beginners Tutorials | User Defined Exception | Custom Exception in Python Tamil with a duration of hours minute second in good quality, which was uploaded by the user SANTRA TECHSPOT 01 January 1970, share the link with friends and acquaintances, this video has already been watched 10,622 times on youtube and it was liked by 245 viewers. Enjoy your viewing!