Created
January 5, 2013 10:09
-
-
Save anonymous/4460834 to your computer and use it in GitHub Desktop.
Exemple classe d'exception
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ErrDeg(Exception) : | |
def __init__(self,value) : | |
self.value = value | |
def __str__(self) : | |
return repr(self.value) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment