Class MapLoadException

All Implemented Interfaces:
Serializable

public class MapLoadException extends MapnikException
A style could not be loaded. It is a MapnikException, with what Mapnik said picked apart: where in the XML (line()), which style or layer it concerned, and the individual problems when a strict load found several.
See Also:
  • Method Details

    • line

      public int line()
      The line of the XML Mapnik pointed at, counting from 1, or -1 if it gave none.
    • column

      public int column()
      The column, counting from 1, or -1 if Mapnik gave none (it usually does not).
    • style

      public String style()
      The name of the style the problem was in, or null.
    • layer

      public String layer()
      The name of the layer the problem was in, or null.
    • element

      public String element()
      The XML element the problem was in, such as PolygonSymbolizer, or null.
    • file

      public String file()
      The XML file, when Mapnik named it, or null.
    • problems

      public List<String> problems()
      The separate problems. A strict load reports every unknown attribute it met; otherwise this is the one message.