Package org.openstreetmap.josm.data.osm
Class DataIntegrityProblemException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.openstreetmap.josm.data.osm.DataIntegrityProblemException
-
- All Implemented Interfaces:
Serializable
public class DataIntegrityProblemException extends RuntimeException
Exception thrown when a primitive or data set does not pass its integrity checks.- Since:
- 2399
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private String
htmlMessage
-
Constructor Summary
Constructors Constructor Description DataIntegrityProblemException(String message)
Constructs a newDataIntegrityProblemException
.DataIntegrityProblemException(String message, String htmlMessage, OsmPrimitive... p)
Constructs a newDataIntegrityProblemException
.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getHtmlMessage()
Returns the HTML-formatted error message.private static String
relevantCommands(OsmPrimitive... p)
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
htmlMessage
private final String htmlMessage
-
-
Constructor Detail
-
DataIntegrityProblemException
public DataIntegrityProblemException(String message)
Constructs a newDataIntegrityProblemException
.- Parameters:
message
- the detail message
-
DataIntegrityProblemException
public DataIntegrityProblemException(String message, String htmlMessage, OsmPrimitive... p)
Constructs a newDataIntegrityProblemException
.- Parameters:
message
- the detail messagehtmlMessage
- HTML-formatted error message. Can be nullp
- the primitive involved in this integrity problem (used for constructing a detailed message)
-
-
Method Detail
-
getHtmlMessage
public String getHtmlMessage()
Returns the HTML-formatted error message.- Returns:
- the HTML-formatted error message, or null
-
relevantCommands
private static String relevantCommands(OsmPrimitive... p)
-
-