summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorAlan Young <consult.awy@gmail.com>2015-03-03 14:13:49 (GMT)
committerAlan Young <consult.awy@gmail.com>2015-04-10 06:52:20 (GMT)
commit87153e86a3340d3ace31efb4330e60cc937d34f2 (patch)
treeaf2371404693900d179f785c6038a4668258d3c0 /src/com
parentf78677be53af975b22fadaad92eafd43abc18f1d (diff)
downloadstroke-87153e86a3340d3ace31efb4330e60cc937d34f2.zip
stroke-87153e86a3340d3ace31efb4330e60cc937d34f2.tar.bz2
Throw exception for missing payload serializer.
Change-Id: I3578fa59bfcb45f5893a16fa2d45c9ea460be198
Diffstat (limited to 'src/com')
-rw-r--r--src/com/isode/stroke/serializer/StanzaSerializer.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/com/isode/stroke/serializer/StanzaSerializer.java b/src/com/isode/stroke/serializer/StanzaSerializer.java
index 14d0ccc..589d2e8 100644
--- a/src/com/isode/stroke/serializer/StanzaSerializer.java
+++ b/src/com/isode/stroke/serializer/StanzaSerializer.java
@@ -1,9 +1,5 @@
/*
- * Copyright (c) 2010, Isode Limited, London, England.
- * All rights reserved.
- */
-/*
- * Copyright (c) 2010, Remko Tronçon.
+ * Copyright (c) 2010-2015, Isode Limited, London, England.
* All rights reserved.
*/
package com.isode.stroke.serializer;
@@ -50,6 +46,7 @@ public abstract class StanzaSerializer implements ElementSerializer {
} else {
/*TODO: port*/
assert false;
+ throw new UnsupportedOperationException("No serializer for payload: " + payload.getClass().getSimpleName());
//std::cerr << "Could not find serializer for " << typeid(*(payload.get())).name() << std::endl;
}
}