Package org.openstreetmap.josm.io
Class XmlStreamParsingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.xml.stream.XMLStreamException
org.openstreetmap.josm.io.XmlStreamParsingException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
OsmReader.OsmParsingCanceledException
Exception for unexpected processing errors during XML stream parsing.
It uses proper JOSM i18n system to translate error message, including file location.
- Since:
- 10235
- See Also:
-
Field Summary
Fields inherited from class javax.xml.stream.XMLStreamException
location, nested -
Constructor Summary
ConstructorsConstructorDescriptionXmlStreamParsingException(String msg, Location location) Constructs a newXmlStreamParsingException.XmlStreamParsingException(String msg, Location location, Throwable th) Constructs a newXmlStreamParsingException. -
Method Summary
Methods inherited from class javax.xml.stream.XMLStreamException
getLocation, getNestedExceptionMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
XmlStreamParsingException
Constructs a newXmlStreamParsingException.- Parameters:
msg- error messagelocation- file location
-
XmlStreamParsingException
Constructs a newXmlStreamParsingException.- Parameters:
msg- error messagelocation- file locationth- Throwable cause
-
-
Method Details
-
getMessage
- Overrides:
getMessagein classThrowable
-