001// License: GPL. For details, see LICENSE file. 002package org.openstreetmap.josm.io; 003 004/** 005 * Exception thrown when a communication with the OSM server has been cancelled by the user. 006 */ 007public class OsmTransferCanceledException extends OsmTransferException { 008 009 /** 010 * Constructs a new {@code OsmTransferCanceledException}, without message. 011 * @param message The detail message (which is saved for later retrieval by the {@link #getMessage} method) 012 * @since 8415 013 */ 014 public OsmTransferCanceledException(String message) { 015 super(message); 016 } 017 018 /** 019 * Constructs a new {@code OsmTransferCanceledException}, with given root cause. 020 * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method). 021 * A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown. 022 */ 023 public OsmTransferCanceledException(Throwable cause) { 024 super(cause); 025 } 026}