001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.tools; 003 004/** 005 * Signals that an error has been reached unexpectedly while parsing. 006 * 007 * @see java.text.ParseException 008 * @since 9385 009 */ 010public class UncheckedParseException extends RuntimeException { 011 012 /** 013 * Constructs a new {@code UncheckedParseException}. 014 */ 015 public UncheckedParseException() { 016 } 017 018 /** 019 * Constructs a new {@code UncheckedParseException} with the specified detail message. 020 * 021 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method). 022 */ 023 public UncheckedParseException(String message) { 024 super(message); 025 } 026 027 /** 028 * Constructs a new {@code UncheckedParseException} with the specified detail message and cause. 029 * 030 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method). 031 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). 032 * (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.) 033 */ 034 public UncheckedParseException(String message, Throwable cause) { 035 super(message, cause); 036 } 037 038 /** 039 * Constructs a new {@code UncheckedParseException} with the specified cause. 040 * 041 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method). 042 * (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.) 043 */ 044 public UncheckedParseException(Throwable cause) { 045 super(cause); 046 } 047 048}