XmlPullParserException
Stay organized with collections
Save and categorize content based on your preferences.
This exception is thrown to signal XML Pull Parser related faults.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Throwable
synchronized
final
void
|
addSuppressed(Throwable arg0)
|
synchronized
Throwable
|
fillInStackTrace()
|
synchronized
Throwable
|
getCause()
|
String
|
getLocalizedMessage()
|
String
|
getMessage()
|
StackTraceElement[]
|
getStackTrace()
|
synchronized
final
Throwable[]
|
getSuppressed()
|
synchronized
Throwable
|
initCause(Throwable arg0)
|
void
|
printStackTrace()
|
void
|
printStackTrace(PrintWriter arg0)
|
void
|
printStackTrace(PrintStream arg0)
|
void
|
setStackTrace(StackTraceElement[] arg0)
|
String
|
toString()
|
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Fields
protected
Throwable
detail
Public Constructors
public
XmlPullParserException
(String s)
public
XmlPullParserException
(String msg, XmlPullParser parser, Throwable chain)
Public Methods
public
int
getColumnNumber
()
public
Throwable
getDetail
()
public
int
getLineNumber
()
public
void
printStackTrace
()
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eXmlPullParserException\u003c/code\u003e is a class that signals faults related to the XML Pull Parser.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to access details about the exception, such as column and line numbers.\u003c/p\u003e\n"],["\u003cp\u003eThe exception can be constructed with a message, an \u003ccode\u003eXmlPullParser\u003c/code\u003e instance, and a chained throwable.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits methods from \u003ccode\u003eThrowable\u003c/code\u003e for stack trace and error handling.\u003c/p\u003e\n"]]],["`XmlPullParserException` signals XML parsing errors. It stores the error's `column` and `row` location, and a `detail` throwable. Constructors allow creating the exception with a message, or a message, parser, and cause. Public methods retrieve the error's column and line numbers (`getColumnNumber`, `getLineNumber`), and the detailed throwable (`getDetail`). Additionally it can display the stack trace using `printStackTrace`. Inherited methods are provided to handle the exception stack.\n"],null,["# XmlPullParserException\n\npublic class **XmlPullParserException** extends Exception \nThis exception is thrown to signal XML Pull Parser related faults. \n\n### Field Summary\n\n|---------------------|-----------------------------------------------------------------------------------|---|\n| protected int | [column](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#column) | |\n| protected Throwable | [detail](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#detail) | |\n| protected int | [row](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#row) | |\n\n### Public Constructor Summary\n\n|---|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| | [XmlPullParserException](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#XmlPullParserException(java.lang.String))(String s) |\n| | [XmlPullParserException](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#XmlPullParserException(java.lang.String,%20org.xmlpull.v1.XmlPullParser,%20java.lang.Throwable))(String msg, [XmlPullParser](../../../../reference/org/xmlpull/v1/XmlPullParser.html) parser, Throwable chain) |\n\n### Public Method Summary\n\n|-----------|---------------------------------------------------------------------------------------------------------|\n| int | [getColumnNumber](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#getColumnNumber())() |\n| Throwable | [getDetail](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#getDetail())() |\n| int | [getLineNumber](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#getLineNumber())() |\n| void | [printStackTrace](../../../../reference/org/xmlpull/v1/XmlPullParserException.html#printStackTrace())() |\n\n### Inherited Method Summary\n\nFrom class java.lang.Throwable \n\n|----------------------------------|-------------------------------------------|\n| synchronized final void | addSuppressed(Throwable arg0) |\n| synchronized Throwable | fillInStackTrace() |\n| synchronized Throwable | getCause() |\n| String | getLocalizedMessage() |\n| String | getMessage() |\n| StackTraceElement\\[\\] | getStackTrace() |\n| synchronized final Throwable\\[\\] | getSuppressed() |\n| synchronized Throwable | initCause(Throwable arg0) |\n| void | printStackTrace() |\n| void | printStackTrace(PrintWriter arg0) |\n| void | printStackTrace(PrintStream arg0) |\n| void | setStackTrace(StackTraceElement\\[\\] arg0) |\n| String | toString() |\n\nFrom class java.lang.Object \n\n|------------------|---------------------------|\n| Object | clone() |\n| boolean | equals(Object arg0) |\n| void | finalize() |\n| final Class\\\u003c?\\\u003e | getClass() |\n| int | hashCode() |\n| final void | notify() |\n| final void | notifyAll() |\n| String | toString() |\n| final void | wait(long arg0, int arg1) |\n| final void | wait(long arg0) |\n| final void | wait() |\n\nFields\n------\n\n#### protected int\n**column**\n\n\u003cbr /\u003e\n\n#### protected Throwable\n**detail**\n\n\u003cbr /\u003e\n\n#### protected int\n**row**\n\n\u003cbr /\u003e\n\nPublic Constructors\n-------------------\n\n#### public\n**XmlPullParserException**\n(String s)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| s | |\n|---|---|\n\n#### public\n**XmlPullParserException**\n(String msg, [XmlPullParser](../../../../reference/org/xmlpull/v1/XmlPullParser.html) parser, Throwable chain)\n\n\u003cbr /\u003e\n\n##### Parameters\n\n| msg | |\n| parser | |\n| chain | |\n|--------|---|\n\nPublic Methods\n--------------\n\n#### public int\n**getColumnNumber**\n()\n\n\u003cbr /\u003e\n\n#### public Throwable\n**getDetail**\n()\n\n\u003cbr /\u003e\n\n#### public int\n**getLineNumber**\n()\n\n\u003cbr /\u003e\n\n#### public void\n**printStackTrace**\n()\n\n\u003cbr /\u003e"]]