1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-11-25 21:42:07 +01:00

Merge pull request #500 from jitsi/bugfix/4.4/error-stanzagetter

Add getter for the stanza associated with the exception
This commit is contained in:
Florian Schmaus 2021-10-19 14:29:11 +02:00 committed by GitHub
commit 0fa6d88575
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,16 @@ public abstract class XMPPException extends Exception {
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.
*