* src/gramps_main.py (__init__): Catch "ErrorSchemaInvalid" exception

* src/Errors.py (GConfSchemaError): Add new exception.
* src/const.py.in: Remove exception string "ErrorSchemaInvalid"
(replaced by new class).
* src/GrampsGconfKeys.py (get_bool,get_int,get_string): Raise exception.


svn: r4204
This commit is contained in:
Alex Roitman
2005-03-17 20:33:36 +00:00
parent 7d1e9311e8
commit a384bc20b7
4 changed files with 19 additions and 12 deletions

View File

@@ -81,3 +81,12 @@ class HandleError(Exception):
def __str__(self):
return self.value
class GConfSchemaError(Exception):
"""Error used to report the absence of expected GConf schema."""
def __init__(self,value):
Exception.__init__(self)
self.value = value
def __str__(self):
return self.value