Class MapCSSException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openstreetmap.josm.gui.mappaint.mapcss.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
-
-
Constructor Summary
Constructors Constructor Description MapCSSException(java.lang.String specialMessage)Constructs a newMapCSSExceptionwith an explicit error message.MapCSSException(java.lang.Throwable cause)Constructs a newMapCSSExceptionwith a cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMessage()voidsetColumn(int column)Sets the column number at which the parse error occurred.voidsetLine(int line)Sets the line number at which the parse error occurred.
-
-
-
Constructor Detail
-
MapCSSException
public MapCSSException(java.lang.String specialMessage)
Constructs a newMapCSSExceptionwith an explicit error message.- Parameters:
specialMessage- error message
-
MapCSSException
public MapCSSException(java.lang.Throwable cause)
Constructs a newMapCSSExceptionwith 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:
getMessagein classjava.lang.Throwable
-
-