]> gitweb.pimeys.fr Git - bots/parrot.git/blob - errors.py
Changement d'ops
[bots/parrot.git] / errors.py
1 #!/usr/bin/python
2 # -*- encoding: utf-8 -*-
3
4 """ Erreurs utilisables dans le code du bot """
5
6 class UnicodeBotError(Exception):
7 """Erreur levée si quelqu'un fait du caca avec son encodage."""
8 pass
9
10 class CrashError(Exception):
11 """Pour pouvoir faire crasher Basile, parce que ça a l'air drôle."""
12 def __init__(self, msg=""):
13 Exception.__init__(self, msg)