diff options
author | Sascha Silbe <sascha@silbe.org> | 2009-08-18 13:25:13 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha@silbe.org> | 2009-08-18 13:25:13 (GMT) |
commit | d2bac711f96ff10cd40201bdfe7810f0fe0f872e (patch) | |
tree | e6b6b56c0ca6d4d1f6b5e123d749dbedb9dc5ab2 /src/sugar/datastore/__init__.py | |
parent | 06acee6e269666155b80d9f0da6fad46662f558d (diff) |
compatible changes to prepare for version supportversions2
Diffstat (limited to 'src/sugar/datastore/__init__.py')
-rw-r--r-- | src/sugar/datastore/__init__.py | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/sugar/datastore/__init__.py b/src/sugar/datastore/__init__.py index bdb658b..ece8f20 100644 --- a/src/sugar/datastore/__init__.py +++ b/src/sugar/datastore/__init__.py @@ -14,3 +14,32 @@ # License along with this library; if not, write to the # Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. + + +class NoSpaceLeftError(Exception): + """There is not enough space left on disk to safely store data and/or + metadata. + + Operation aborted, everything still at the previous state. + """ + +class InvalidArgumentError(Exception): + """One or several of the passed parameters were invalid. + + See formatted string for details. This should only happen if the caller + is doing something wrong, not during normal operation. + """ + +class CorruptionError(Exception): + """The internal data structures of the data store or one of its backends + are corrupted. + + Should only happen in case of hardware defects or OS bugs. + """ + +class BusyError(Exception): + """Data store is busy recovering from a crash. + + Please wait for Ready() before starting to issue any API call (except + check_ready()). + """ |