mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +02:00
Use error codes on connection creation failure (SMACK-78).
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2042 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
6a1cb7c2db
commit
c58b84a6e2
3 changed files with 46 additions and 9 deletions
|
@ -121,6 +121,20 @@ public class XMPPException extends Exception {
|
|||
this.wrappedThrowable = wrappedThrowable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new XMPPException with a description of the exception, an XMPPError,
|
||||
* and the Throwable that was the root cause of the exception.
|
||||
*
|
||||
* @param message a description of the exception.
|
||||
* @param error the root cause of the exception.
|
||||
* @param wrappedThrowable the root cause of the exception.
|
||||
*/
|
||||
public XMPPException(String message, XMPPError error, Throwable wrappedThrowable) {
|
||||
super(message);
|
||||
this.error = error;
|
||||
this.wrappedThrowable = wrappedThrowable;
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a new XMPPException with a description of the exception and the
|
||||
* XMPPException that was the root cause of the exception.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue