catch all exceptions thrown by xml pull parser
This commit is contained in:
parent
76889b9c58
commit
fb7525e0b9
|
@ -96,17 +96,8 @@ public class XmlReader {
|
||||||
} catch (RuntimeException re) {
|
} catch (RuntimeException re) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ArrayIndexOutOfBoundsException e) {
|
} catch (Exception e) {
|
||||||
throw new IOException(
|
throw new IOException("xml parser mishandled "+e.getClass().getName(), e);
|
||||||
"xml parser mishandled ArrayIndexOufOfBounds", e);
|
|
||||||
} catch (StringIndexOutOfBoundsException e) {
|
|
||||||
throw new IOException(
|
|
||||||
"xml parser mishandled StringIndexOufOfBounds", e);
|
|
||||||
} catch (NullPointerException e) {
|
|
||||||
throw new IOException("xml parser mishandled NullPointerException",
|
|
||||||
e);
|
|
||||||
} catch (IndexOutOfBoundsException e) {
|
|
||||||
throw new IOException("xml parser mishandled IndexOutOfBound", e);
|
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue