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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MapCSSException(String specialMessage)
Constructs a newMapCSSException
with an explicit error message.MapCSSException(Throwable cause)
Constructs a newMapCSSException
with a cause.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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
-
-
-
-
Constructor Detail
-
MapCSSException
public MapCSSException(String specialMessage)
Constructs a newMapCSSException
with an explicit error message.- Parameters:
specialMessage
- error message
-
MapCSSException
public MapCSSException(Throwable cause)
Constructs a newMapCSSException
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 String getMessage()
- Overrides:
getMessage
in classThrowable
-
-