source: CCCC/tags/1.2.5/ceda_cc/xceptions.py @ 180

Subversion URL: http://proj.badc.rl.ac.uk/svn/exarch/CCCC/tags/1.2.5/ceda_cc/xceptions.py@1241
Revision 180, 393 bytes checked in by mjuckes, 6 years ago (diff)

merged from branches-mnj (which was branched from branches-sp)

Line 
1
2
3class abortChecks(Exception):
4  pass
5class loggedException(Exception):
6  pass
7class baseException(Exception):
8
9  def __init__(self,msg):
10    self.msg = 'utils_c4:: %s' % msg
11
12  def __str__(self):
13        return unicode(self).encode('utf-8')
14
15  def __unicode__(self):
16        return self.msg % tuple([force_unicode(p, errors='replace')
17                                 for p in self.params])
Note: See TracBrowser for help on using the repository browser.