source: josm/trunk/src/org/openstreetmap/josm/io/IllegalDataException.java@ 11589

Last change on this file since 11589 was 7417, checked in by Don-vip, 10 years ago

fix #10380 - throw IllegalDataException instead of RuntimeException with invalid TagChecker rules

  • Property svn:eol-style set to native
File size: 1.2 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
4/**
5 * Generic exception raised when illegal data is read.
6 * @since 2070
7 */
8public class IllegalDataException extends Exception {
9
10 /**
11 * Constructs a new {@code IllegalDataException}.
12 * @param message the detail message (which is saved for later retrieval
13 * by the {@link #getMessage()} method).
14 * @param cause the cause (which is saved for later retrieval by the
15 * {@link #getCause()} method).
16 */
17 public IllegalDataException(String message, Throwable cause) {
18 super(message, cause);
19 }
20
21 /**
22 * Constructs a new {@code IllegalDataException}.
23 * @param message the detail message (which is saved for later retrieval
24 * by the {@link #getMessage()} method).
25 */
26 public IllegalDataException(String message) {
27 super(message);
28 }
29
30 /**
31 * Constructs a new {@code IllegalDataException}.
32 * @param cause the cause (which is saved for later retrieval by the
33 * {@link #getCause()} method).
34 */
35 public IllegalDataException(Throwable cause) {
36 super(cause);
37 }
38}
Note: See TracBrowser for help on using the repository browser.