mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-16 04:12:04 +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:
parent
6fce8ec9f0
commit
996f50449c
1 changed files with 5 additions and 3 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue