Class XmlStreamParsingException

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    OsmReader.OsmParsingCanceledException

    public class XmlStreamParsingException
    extends javax.xml.stream.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​(java.lang.String msg, javax.xml.stream.Location location)
      Constructs a new XmlStreamParsingException.
      XmlStreamParsingException​(java.lang.String msg, javax.xml.stream.Location location, java.lang.Throwable th)
      Constructs a new XmlStreamParsingException.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • XmlStreamParsingException

        public XmlStreamParsingException​(java.lang.String msg,
                                         javax.xml.stream.Location location)
        Constructs a new XmlStreamParsingException.
        Parameters:
        msg - error message
        location - file location
      • XmlStreamParsingException

        public XmlStreamParsingException​(java.lang.String msg,
                                         javax.xml.stream.Location location,
                                         java.lang.Throwable th)
        Constructs a new XmlStreamParsingException.
        Parameters:
        msg - error message
        location - file location
        th - Throwable cause
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable