mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-11 01:59:38 +02:00
Add XMPPErrorException.getStanzaError()
Also deprecate getXMPPError and let StanzaError implement ExtensionElement.
This commit is contained in:
parent
651ee7b85e
commit
23bb5c5625
31 changed files with 108 additions and 75 deletions
|
@ -77,7 +77,7 @@ public class ServiceDiscoveryManagerTest extends SmackTestCase {
|
|||
fail("Unexpected identities were returned instead of a 404 error");
|
||||
}
|
||||
catch (XMPPException e) {
|
||||
assertEquals("Incorrect error", 404, e.getXMPPError().getCode());
|
||||
assertEquals("Incorrect error", 404, e.getStanzaError().getCode());
|
||||
}
|
||||
catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue