mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-12-12 14:01:08 +01:00
Rework exceptions in the parsing / provider subsystem
This commit is contained in:
parent
4c42d0cd32
commit
083dac8b83
130 changed files with 504 additions and 342 deletions
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.jivesoftware.smackx.blocking.provider;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -26,6 +27,7 @@ import org.jivesoftware.smackx.blocking.element.BlockContactsIQ;
|
|||
|
||||
import org.jxmpp.jid.Jid;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
/**
|
||||
* Block contact IQ provider class.
|
||||
|
|
@ -37,7 +39,7 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
public class BlockContactsIQProvider extends IQProvider<BlockContactsIQ> {
|
||||
|
||||
@Override
|
||||
public BlockContactsIQ parse(XmlPullParser parser, int initialDepth) throws Exception {
|
||||
public BlockContactsIQ parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException {
|
||||
List<Jid> jids = new ArrayList<>();
|
||||
|
||||
outerloop: while (true) {
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.jivesoftware.smackx.blocking.provider;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -27,6 +28,7 @@ import org.jivesoftware.smackx.blocking.element.BlockListIQ;
|
|||
|
||||
import org.jxmpp.jid.Jid;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
/**
|
||||
* Block list IQ provider class.
|
||||
|
|
@ -38,7 +40,7 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
public class BlockListIQProvider extends IQProvider<BlockListIQ> {
|
||||
|
||||
@Override
|
||||
public BlockListIQ parse(XmlPullParser parser, int initialDepth) throws Exception {
|
||||
public BlockListIQ parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException {
|
||||
List<Jid> jids = null;
|
||||
|
||||
outerloop: while (true) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
public class BlockedErrorExtensionProvider extends ExtensionElementProvider<BlockedErrorExtension> {
|
||||
|
||||
@Override
|
||||
public BlockedErrorExtension parse(XmlPullParser parser, int initialDepth) throws Exception {
|
||||
public BlockedErrorExtension parse(XmlPullParser parser, int initialDepth) {
|
||||
return new BlockedErrorExtension();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -16,6 +16,7 @@
|
|||
*/
|
||||
package org.jivesoftware.smackx.blocking.provider;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
|
|
@ -26,6 +27,7 @@ import org.jivesoftware.smackx.blocking.element.UnblockContactsIQ;
|
|||
import org.jxmpp.jid.Jid;
|
||||
import org.jxmpp.jid.impl.JidCreate;
|
||||
import org.xmlpull.v1.XmlPullParser;
|
||||
import org.xmlpull.v1.XmlPullParserException;
|
||||
|
||||
/**
|
||||
* Unblock contact IQ provider class.
|
||||
|
|
@ -37,7 +39,7 @@ import org.xmlpull.v1.XmlPullParser;
|
|||
public class UnblockContactsIQProvider extends IQProvider<UnblockContactsIQ> {
|
||||
|
||||
@Override
|
||||
public UnblockContactsIQ parse(XmlPullParser parser, int initialDepth) throws Exception {
|
||||
public UnblockContactsIQ parse(XmlPullParser parser, int initialDepth) throws XmlPullParserException, IOException {
|
||||
List<Jid> jids = null;
|
||||
|
||||
outerloop: while (true) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue