mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-17 01:32:06 +01:00
646271abac
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@10419 b35dd754-fafc-0310-a699-88a17e54d16e
52 lines
No EOL
1.1 KiB
Java
52 lines
No EOL
1.1 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 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;
|
|
}
|
|
} |