Package dev.avelar.mapnik
Class MapLoadException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
dev.avelar.mapnik.MapnikException
dev.avelar.mapnik.MapLoadException
- All Implemented Interfaces:
Serializable
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 Summary
Modifier and TypeMethodDescriptionintcolumn()The column, counting from 1, or -1 if Mapnik gave none (it usually does not).element()The XML element the problem was in, such asPolygonSymbolizer, or null.file()The XML file, when Mapnik named it, or null.layer()The name of the layer the problem was in, or null.intline()The line of the XML Mapnik pointed at, counting from 1, or -1 if it gave none.problems()The separate problems.style()The name of the style the problem was in, or null.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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
The name of the style the problem was in, or null. -
layer
The name of the layer the problem was in, or null. -
element
The XML element the problem was in, such asPolygonSymbolizer, or null. -
file
The XML file, when Mapnik named it, or null. -
problems
The separate problems. A strict load reports every unknown attribute it met; otherwise this is the one message.
-