Class MapCSSException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MapCSSException
    extends java.lang.RuntimeException
    MapCSS parsing error, with line/column information in error message.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.lang.Integer column
      column number at which the parse error occurred
      protected java.lang.Integer line
      line number at which the parse error occurred
    • Constructor Summary

      Constructors 
      Constructor Description
      MapCSSException​(java.lang.String specialMessage)
      Constructs a new MapCSSException with an explicit error message.
      MapCSSException​(java.lang.Throwable cause)
      Constructs a new MapCSSException with a cause.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMessage()  
      void setColumn​(int column)
      Sets the column number at which the parse error occurred.
      void setLine​(int line)
      Sets the line number at which the parse error occurred.
      • 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
    • Field Detail

      • line

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

        protected java.lang.Integer column
        column number at which the parse error occurred
    • Constructor Detail

      • MapCSSException

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

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

      • 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 java.lang.String getMessage()
        Overrides:
        getMessage in class java.lang.Throwable