Ignore:
Timestamp:
2017-05-01T21:41:20+02:00 (3 years ago)
Author:
Don-vip
Message:

add more unit tests, javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/osm/DataIntegrityProblemException.java

    r6987 r12036  
    22package org.openstreetmap.josm.data.osm;
    33
     4/**
     5 * Exception thrown when a primitive or data set does not pass its integrity checks.
     6 * @since 2399
     7 */
    48public class DataIntegrityProblemException extends RuntimeException {
    59
    610    private final String htmlMessage;
    711
     12    /**
     13     * Constructs a new {@code DataIntegrityProblemException}.
     14     * @param message the detail message
     15     */
    816    public DataIntegrityProblemException(String message) {
    917        this(message, null);
    1018    }
    1119
     20    /**
     21     * Constructs a new {@code DataIntegrityProblemException}.
     22     * @param message the detail message
     23     * @param htmlMessage HTML-formatted error message. Can be null
     24     */
    1225    public DataIntegrityProblemException(String message, String htmlMessage) {
    1326        super(message);
     
    1528    }
    1629
     30    /**
     31     * Returns the HTML-formatted error message.
     32     * @return the HTML-formatted error message, or null
     33     */
    1734    public String getHtmlMessage() {
    1835        return htmlMessage;
Note: See TracChangeset for help on using the changeset viewer.