1
0
Fork 0
mirror of https://codeberg.org/Mercury-IM/Smack synced 2024-11-26 00:02:06 +01:00

Use XMPPError class.

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@1845 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Matt Tucker 2003-03-07 19:54:10 +00:00 committed by mtucker
parent 6fce8ec9f0
commit 996f50449c

View file

@ -52,6 +52,8 @@
package org.jivesoftware.smack; package org.jivesoftware.smack;
import org.jivesoftware.smack.packet.XMPPError;
import java.io.PrintStream; import java.io.PrintStream;
import java.io.PrintWriter; import java.io.PrintWriter;
@ -63,7 +65,7 @@ import java.io.PrintWriter;
*/ */
public class XMPPException extends Exception { public class XMPPException extends Exception {
private Error error = null; private XMPPError error = null;
private Throwable cause = null; private Throwable cause = null;
public XMPPException() { public XMPPException() {
@ -79,7 +81,7 @@ public class XMPPException extends Exception {
this.cause = cause; this.cause = cause;
} }
public XMPPException(Error error) { public XMPPException(XMPPError error) {
super(); super();
this.error = error; this.error = error;
} }
@ -89,7 +91,7 @@ public class XMPPException extends Exception {
this.cause = cause; this.cause = cause;
} }
public XMPPException(String message, Error error) { public XMPPException(String message, XMPPError error) {
super(message); super(message);
this.error = error; this.error = error;
} }