Permalink
Browse files

Merge branch 'plugins' into develop

Conflicts:
	hamper/commander.py
	hamper/plugins/commands.py
  • Loading branch information...
2 parents e8c9129 + bf798e9 commit 4603358714a57d3261ac055c5b28bd63d734c457 @mythmon mythmon committed Jul 17, 2011
Showing with 6,714 additions and 27 deletions.
  1. 0 bravo/__init__.py
  2. +55 −0 bravo/errors.py
  3. +456 −0 bravo/ibravo.py
  4. +292 −0 bravo/plugin.py
  5. +12 −0 exocet/__init__.py
  6. +121 −0 exocet/_components.py
  7. +807 −0 exocet/_exocet.py
  8. +927 −0 exocet/_filepath.py
  9. +959 −0 exocet/_modules.py
  10. +129 −0 exocet/_reflect.py
  11. +114 −0 exocet/_runtime.py
  12. +168 −0 exocet/_win32.py
  13. +216 −0 exocet/_zippath.py
  14. 0 exocet/test/__init__.py
  15. +1 −0 exocet/test/_ospathExample.py
  16. +239 −0 exocet/test/test_exocet.py
  17. +782 −0 exocet/test/test_modules.py
  18. +1,255 −0 exocet/test/test_paths.py
  19. +3 −0 exocet/test/testpackage/__init__.py
  20. +1 −0 exocet/test/testpackage/baz.py
  21. +4 −0 exocet/test/testpackage/foo.py
  22. +3 −0 exocet/test/testpackage/topmodule.py
  23. +2 −0 exocet/test/testpackage/util.py
  24. 0 exocet/test/testpackage_circular/__init__.py
  25. +1 −0 exocet/test/testpackage_circular/baz.py
  26. +2 −0 exocet/test/testpackage_circular/foo.py
  27. +1 −0 exocet/test/testpackage_circular/topmodule.py
  28. +6 −0 exocet/test/testpackage_circular/util.py
  29. +3 −0 exocet/test/testpackage_localimports/__init__.py
  30. +1 −0 exocet/test/testpackage_localimports/baz.py
  31. +6 −0 exocet/test/testpackage_localimports/foo.py
  32. +3 −0 exocet/test/testpackage_localimports/topmodule.py
  33. +1 −0 exocet/test/testpackage_localimports/util.py
  34. +20 −0 hamper/IHamper.py
  35. +41 −10 hamper/commander.py
  36. +5 −1 hamper/main.py
  37. 0 hamper/plugins/__init__.py
  38. +26 −16 hamper/{ → plugins}/commands.py
  39. +52 −0 hamper/plugins/plugin_utils.py
View
No changes.
View
@@ -0,0 +1,55 @@
+"""
+Module for specifying types of errors which might occur internally.
+"""
+
+# Errors which can be raised by serializers in the course of doing things
+# which serializers might normally do.
+
+class SerializerException(Exception):
+ """
+ Something bad happened in a serializer.
+ """
+
+class SerializerReadException(SerializerException):
+ """
+ A serializer had issues reading data.
+ """
+
+class SerializerWriteException(SerializerException):
+ """
+ A serializer had issues writing data.
+ """
+
+# Errors from plugin loading.
+
+class InvariantException(Exception):
+ """
+ Exception raised by failed invariant conditions.
+ """
+
+class PluginException(Exception):
+ """
+ Signal an error encountered during plugin handling.
+ """
+
+# Errors from NBT handling.
+
+class MalformedFileError(Exception):
+ """
+ Exception raised on parse error.
+ """
+
+# Errors from bravo clients.
+
+class BuildError(Exception):
+ """
+ Something went wrong with the build.
+ """
+
+# Errors from the world.
+
+class ChunkNotLoaded(Exception):
+ """
+ The requested chunk is not currently loaded. If you need it, you will need
+ to request it yourself.
+ """
Oops, something went wrong.

0 comments on commit 4603358

Please sign in to comment.