Ignore:
Timestamp:
2014-08-16T11:56:17+02:00 (10 years ago)
Author:
Don-vip
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/IllegalDataException.java

    r3083 r7417  
    22package org.openstreetmap.josm.io;
    33
    4 public class IllegalDataException extends Exception{
     4/**
     5 * Generic exception raised when illegal data is read.
     6 * @since 2070
     7 */
     8public class IllegalDataException extends Exception {
    59
    6     public IllegalDataException() {
    7         super();
    8     }
    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     */
    1017    public IllegalDataException(String message, Throwable cause) {
    1118        super(message, cause);
    1219    }
    1320
     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     */
    1426    public IllegalDataException(String message) {
    1527        super(message);
    1628    }
    1729
     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     */
    1835    public IllegalDataException(Throwable cause) {
    1936        super(cause);
    2037    }
    21 
    2238}
Note: See TracChangeset for help on using the changeset viewer.