Last change
on this file since 13205 was 12036, checked in by Don-vip, 7 years ago |
add more unit tests, javadoc
|
-
Property svn:eol-style
set to
native
|
File size:
1.0 KB
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.osm;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Exception thrown when a primitive or data set does not pass its integrity checks.
|
---|
6 | * @since 2399
|
---|
7 | */
|
---|
8 | public class DataIntegrityProblemException extends RuntimeException {
|
---|
9 |
|
---|
10 | private final String htmlMessage;
|
---|
11 |
|
---|
12 | /**
|
---|
13 | * Constructs a new {@code DataIntegrityProblemException}.
|
---|
14 | * @param message the detail message
|
---|
15 | */
|
---|
16 | public DataIntegrityProblemException(String message) {
|
---|
17 | this(message, null);
|
---|
18 | }
|
---|
19 |
|
---|
20 | /**
|
---|
21 | * Constructs a new {@code DataIntegrityProblemException}.
|
---|
22 | * @param message the detail message
|
---|
23 | * @param htmlMessage HTML-formatted error message. Can be null
|
---|
24 | */
|
---|
25 | public DataIntegrityProblemException(String message, String htmlMessage) {
|
---|
26 | super(message);
|
---|
27 | this.htmlMessage = htmlMessage;
|
---|
28 | }
|
---|
29 |
|
---|
30 | /**
|
---|
31 | * Returns the HTML-formatted error message.
|
---|
32 | * @return the HTML-formatted error message, or null
|
---|
33 | */
|
---|
34 | public String getHtmlMessage() {
|
---|
35 | return htmlMessage;
|
---|
36 | }
|
---|
37 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.