mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-25 21:42:07 +01:00
Add getter for the stanza associated with the exception
Fixes SMACK-916
This commit is contained in:
parent
ec456399b5
commit
27ff37fa98
1 changed files with 10 additions and 0 deletions
|
@ -120,6 +120,16 @@ public abstract class XMPPException extends Exception {
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the stanza associated with this exception.
|
||||||
|
*
|
||||||
|
* @return the stanza from which this exception was created or {@code null} if the exception is not from a
|
||||||
|
* stanza.
|
||||||
|
*/
|
||||||
|
public Stanza getStanza() {
|
||||||
|
return stanza;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the request which triggered the error response causing this exception.
|
* Get the request which triggered the error response causing this exception.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue