diff src/core/exceptions.py @ 1052:e88bff4c8b77

core (XMPP): sendMessage refactoring: - better separation of message sending actions - use of more generic exceptions to hook the behaviour (SkipHistory and CancelError) - use of raise instead of return - use of failure.trap
author Goffi <goffi@goffi.org>
date Sat, 07 Jun 2014 16:35:29 +0200
parents 15f43b54d697
children f8a8434dbac7
line wrap: on
line diff
--- a/src/core/exceptions.py	Tue Jun 03 17:10:12 2014 +0200
+++ b/src/core/exceptions.py	Sat Jun 07 16:35:29 2014 +0200
@@ -92,3 +92,6 @@
 
 class PasswordError(Exception):
     pass
+
+class SkipHistory(Exception): # used in MessageReceivedTrigger to avoid history writting
+    pass