Package org.openstreetmap.josm.tools
Class XmlParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.xml.sax.SAXException
org.openstreetmap.josm.tools.XmlParsingException
- All Implemented Interfaces:
Serializable
An exception thrown during XML parsing, with known line and column.
- Since:
- 6906
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newXmlParsingException.XmlParsingException(String message) Constructs a newXmlParsingException.XmlParsingException(String message, Exception e) Constructs a newXmlParsingException. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the column number where the exception occurred.intReturns the line number where the exception occurred.rememberLocation(Locator locator) Sets the location (line/column) where the exception occurred.Methods inherited from class org.xml.sax.SAXException
getCause, getException, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Field Details
-
columnNumber
-
lineNumber
-
-
Constructor Details
-
XmlParsingException
Constructs a newXmlParsingException.- Parameters:
e- The cause
-
XmlParsingException
Constructs a newXmlParsingException.- Parameters:
message- The error messagee- The cause
-
XmlParsingException
Constructs a newXmlParsingException.- Parameters:
message- The error message
-
-
Method Details
-
rememberLocation
Sets the location (line/column) where the exception occurred.- Parameters:
locator- object giving the location (line/column) where the exception occurred- Returns:
this
-
getMessage
- Overrides:
getMessagein classSAXException
-
getColumnNumber
Returns the column number where the exception occurred.- Returns:
- the column number where the exception occurred
-
getLineNumber
Returns the line number where the exception occurred.- Returns:
- the line number where the exception occurred
-