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
public class XmlStreamParsingException extends XMLStreamException
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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class javax.xml.stream.XMLStreamException
location, nested
-
-
Constructor Summary
Constructors Constructor Description XmlStreamParsingException(String msg, Location location)
Constructs a newXmlStreamParsingException
.XmlStreamParsingException(String msg, Location location, Throwable th)
Constructs a newXmlStreamParsingException
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMessage()
-
Methods inherited from class javax.xml.stream.XMLStreamException
getLocation, getNestedException
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
XmlStreamParsingException
public XmlStreamParsingException(String msg, Location location)
Constructs a newXmlStreamParsingException
.- Parameters:
msg
- error messagelocation
- file location
-
XmlStreamParsingException
public XmlStreamParsingException(String msg, Location location, Throwable th)
Constructs a newXmlStreamParsingException
.- Parameters:
msg
- error messagelocation
- file locationth
- Throwable cause
-
-
Method Detail
-
getMessage
public String getMessage()
- Overrides:
getMessage
in classThrowable
-
-