mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 18:48:00 +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;
|
||||
|
||||
import org.jivesoftware.smack.packet.XMPPError;
|
||||
|
||||
import java.io.PrintStream;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
|
@ -63,7 +65,7 @@ import java.io.PrintWriter;
|
|||
*/
|
||||
public class XMPPException extends Exception {
|
||||
|
||||
private Error error = null;
|
||||
private XMPPError error = null;
|
||||
private Throwable cause = null;
|
||||
|
||||
public XMPPException() {
|
||||
|
@ -79,7 +81,7 @@ public class XMPPException extends Exception {
|
|||
this.cause = cause;
|
||||
}
|
||||
|
||||
public XMPPException(Error error) {
|
||||
public XMPPException(XMPPError error) {
|
||||
super();
|
||||
this.error = error;
|
||||
}
|
||||
|
@ -89,7 +91,7 @@ public class XMPPException extends Exception {
|
|||
this.cause = cause;
|
||||
}
|
||||
|
||||
public XMPPException(String message, Error error) {
|
||||
public XMPPException(String message, XMPPError error) {
|
||||
super(message);
|
||||
this.error = error;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue