Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/sugar/datastore/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/sugar/datastore/__init__.py')
-rw-r--r--src/sugar/datastore/__init__.py29
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()).
+ """