Class DataIntegrityProblemException

  • All Implemented Interfaces:
    java.io.Serializable

    public class DataIntegrityProblemException
    extends java.lang.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 java.lang.String htmlMessage  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHtmlMessage()
      Returns the HTML-formatted error message.
      private static java.lang.String relevantCommands​(OsmPrimitive... p)  
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • htmlMessage

        private final java.lang.String htmlMessage
    • Constructor Detail

      • DataIntegrityProblemException

        public DataIntegrityProblemException​(java.lang.String message)
        Constructs a new DataIntegrityProblemException.
        Parameters:
        message - the detail message
      • DataIntegrityProblemException

        public DataIntegrityProblemException​(java.lang.String message,
                                             java.lang.String htmlMessage,
                                             OsmPrimitive... p)
        Constructs a new DataIntegrityProblemException.
        Parameters:
        message - the detail message
        htmlMessage - HTML-formatted error message. Can be null
        p - the primitive involved in this integrity problem (used for constructing a detailed message)
    • Method Detail

      • getHtmlMessage

        public java.lang.String getHtmlMessage()
        Returns the HTML-formatted error message.
        Returns:
        the HTML-formatted error message, or null