source: josm/trunk/src/org/openstreetmap/josm/tools/UserCancelException.java@ 11366

Last change on this file since 11366 was 8919, checked in by Don-vip, 8 years ago

move UserCancelException class in tools package and use it where applicable

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4/**
5 * Exception thrown when an operation is canceled by user.
6 * @since 1001 (creation)
7 * @since 8919 (move into this package)
8 */
9public class UserCancelException extends Exception {
10
11 /**
12 * Constructs a new {@code UserCancelException}.
13 */
14 public UserCancelException() {
15 super();
16 }
17
18 /**
19 * Constructs a new {@code UserCancelException} with the specified detail message and cause.
20 *
21 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
22 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
23 * (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
24 */
25 public UserCancelException(String message, Throwable cause) {
26 super(message, cause);
27 }
28
29 /**
30 * Constructs a new {@code UserCancelException} with the specified detail message.
31 *
32 * @param message the detail message (which is saved for later retrieval by the {@link #getMessage()} method).
33 */
34 public UserCancelException(String message) {
35 super(message);
36 }
37
38 /**
39 * Constructs a new {@code UserCancelException} with the specified cause.
40 *
41 * @param cause the cause (which is saved for later retrieval by the {@link #getCause()} method).
42 * (A <tt>null</tt> value is permitted, and indicates that the cause is nonexistent or unknown.)
43 */
44 public UserCancelException(Throwable cause) {
45 super(cause);
46 }
47}
Note: See TracBrowser for help on using the repository browser.