From 044e9cf71c2d6dbfb26ca42eca66a0ac4083eb34 Mon Sep 17 00:00:00 2001 From: Matt Tucker Date: Fri, 7 Mar 2003 19:47:49 +0000 Subject: [PATCH] Fixed parsing of packet properties, renamed error class. git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1843 b35dd754-fafc-0310-a699-88a17e54d16e --- source/org/jivesoftware/smack/PacketReader.java | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/source/org/jivesoftware/smack/PacketReader.java b/source/org/jivesoftware/smack/PacketReader.java index 59c68a283..7cf62d1c5 100644 --- a/source/org/jivesoftware/smack/PacketReader.java +++ b/source/org/jivesoftware/smack/PacketReader.java @@ -58,7 +58,7 @@ import java.io.ObjectInputStream; import java.io.ByteArrayInputStream; import org.jivesoftware.smack.packet.*; -import org.jivesoftware.smack.packet.Error; +import org.jivesoftware.smack.packet.XMPPError; import org.jivesoftware.smack.filter.PacketFilter; import org.jivesoftware.smack.util.StringUtils; @@ -327,7 +327,7 @@ class PacketReader { String to = parser.getAttributeValue("", "to"); String from = parser.getAttributeValue("", "from"); IQ.Type type = IQ.Type.fromString(parser.getAttributeValue("", "type")); - Error error = null; + XMPPError error = null; Map properties = null; boolean done = false; @@ -437,7 +437,7 @@ class PacketReader { return roster; } - private static Error parseError(XmlPullParser parser) throws Exception { + private static XMPPError parseError(XmlPullParser parser) throws Exception { String errorCode = null; for (int i=0; i