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 root cause. 011 */ 012 public OsmTransferCanceledException() { 013 014 } 015 016 /** 017 * Constructs a new {@code OsmTransferCanceledException}, with given root cause. 018 * @param cause the cause (which is saved for later retrieval by the {@link #getCause} method). 019 * A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown. 020 */ 021 public OsmTransferCanceledException(Throwable cause) { 022 super(cause); 023 } 024}