cc-4105: locale fixes, more exceptions, routine to touch index file

This commit is contained in:
Rudi Grinberg 2012-07-23 14:12:59 -04:00
parent 6fd1dff60a
commit f40b076b46
4 changed files with 55 additions and 9 deletions

View file

@ -20,3 +20,11 @@ class FailedToObtainLocale(Exception):
self.path = path
self.cause = cause
def __str__(self): return "Failed to obtain locale from '%s'" % self.path
class CouldNotCreateIndexFile(Exception):
"""exception whenever index file cannot be created"""
def __init__(self, path, cause):
self.path = path
self.cause = cause
def __str__(self): return "Failed to create touch file '%s'" % self.path