Class MapCSSException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.openstreetmap.josm.gui.mappaint.mapcss.MapCSSException
All Implemented Interfaces:
Serializable

public class MapCSSException extends RuntimeException
MapCSS parsing error, with line/column information in error message.
See Also:
  • Field Details

    • line

      protected Integer line
      line number at which the parse error occurred
    • column

      protected Integer column
      column number at which the parse error occurred
  • Constructor Details

    • MapCSSException

      public MapCSSException(String specialMessage)
      Constructs a new MapCSSException with an explicit error message.
      Parameters:
      specialMessage - error message
    • MapCSSException

      public MapCSSException(Throwable cause)
      Constructs a new MapCSSException with a cause.
      Parameters:
      cause - the root cause
      Since:
      11562
  • Method Details

    • setColumn

      public void setColumn(int column)
      Sets the column number at which the parse error occurred.
      Parameters:
      column - the column number at which the parse error occurred
    • setLine

      public void setLine(int line)
      Sets the line number at which the parse error occurred.
      Parameters:
      line - the line number at which the parse error occurred
    • getMessage

      public String getMessage()
      Overrides:
      getMessage in class Throwable