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

Veröffentlicht am: 01 Januar 1970
auf dem Kanal: 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


Auf dieser Seite können Sie das Online-Video #35 | Python Beginners Tutorials | User Defined Exception | Custom Exception in Python Tamil mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer SANTRA TECHSPOT 01 Januar 1970 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 10,622 Mal angesehen und es wurde von 245 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!