Mercurial > libervia-pubsub
comparison idavoll/error.py @ 213:a321f9300054
Actually log requests if verbose.
author | Ralph Meijer <ralphm@ik.nu> |
---|---|
date | Thu, 18 Jun 2009 10:27:11 +0000 |
parents | 274a45d2a5ab |
children |
comparison
equal
deleted
inserted
replaced
212:edabaa535476 | 213:a321f9300054 |
---|---|
1 # Copyright (c) 2003-2008 Ralph Meijer | 1 # Copyright (c) 2003-2008 Ralph Meijer |
2 # See LICENSE for details. | 2 # See LICENSE for details. |
3 | 3 |
4 class Error(Exception): | 4 class Error(Exception): |
5 msg = '' | 5 msg = '' |
6 | |
7 def __init__(self, msg=None): | |
8 self.msg = msg or self.msg | |
9 | |
6 | 10 |
7 def __str__(self): | 11 def __str__(self): |
8 return self.msg | 12 return self.msg |
9 | 13 |
10 | 14 |