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

Last change on this file since 9471 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
RevLine 
[2512]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.io;
3
[7417]4/**
5 * Generic exception raised when illegal data is read.
6 * @since 2070
7 */
8public class IllegalDataException extends Exception {
[2512]9
[7417]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 */
[2512]17 public IllegalDataException(String message, Throwable cause) {
18 super(message, cause);
19 }
20
[7417]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 */
[2512]26 public IllegalDataException(String message) {
27 super(message);
28 }
29
[7417]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 */
[2512]35 public IllegalDataException(Throwable cause) {
36 super(cause);
37 }
38}
Note: See TracBrowser for help on using the repository browser.