cc-4105: locale fixes, more exceptions, routine to touch index file
This commit is contained in:
parent
6fd1dff60a
commit
f40b076b46
4 changed files with 55 additions and 9 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue