mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-10-05 06:09:34 +02:00
e08c8afe44
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@13325 b35dd754-fafc-0310-a699-88a17e54d16e
53 lines
1.2 KiB
Java
53 lines
1.2 KiB
Java
package org.jivesoftware.smackx.jingle;
|
|
|
|
|
|
import org.jivesoftware.smack.XMPPException;
|
|
import org.jivesoftware.smackx.packet.JingleError;
|
|
|
|
/**
|
|
* A Jingle exception.
|
|
*
|
|
* @author Alvaro Saurin <alvaro.saurin@gmail.com>
|
|
*/
|
|
public class JingleException extends XMPPException {
|
|
private static final long serialVersionUID = -1521230401958103382L;
|
|
|
|
private final JingleError error;
|
|
|
|
/**
|
|
* Default constructor.
|
|
*/
|
|
public JingleException() {
|
|
super();
|
|
error = null;
|
|
}
|
|
|
|
/**
|
|
* Constructor with an error message.
|
|
*
|
|
* @param msg The message.
|
|
*/
|
|
public JingleException(String msg) {
|
|
super(msg);
|
|
error = null;
|
|
}
|
|
|
|
/**
|
|
* Constructor with an error response.
|
|
*
|
|
* @param error The error message.
|
|
*/
|
|
public JingleException(JingleError error) {
|
|
super();
|
|
this.error = error;
|
|
}
|
|
|
|
/**
|
|
* Return the error message.
|
|
*
|
|
* @return the error
|
|
*/
|
|
public JingleError getError() {
|
|
return error;
|
|
}
|
|
} |