Last change
on this file since 9951 was 8919, checked in by Don-vip, 9 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
|
Rev | Line | |
---|
[1001] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[8919] | 2 | package org.openstreetmap.josm.tools;
|
---|
[1001] | 3 |
|
---|
[8919] | 4 | /**
|
---|
| 5 | * Exception thrown when an operation is canceled by user.
|
---|
| 6 | * @since 1001 (creation)
|
---|
| 7 | * @since 8919 (move into this package)
|
---|
| 8 | */
|
---|
[1001] | 9 | public class UserCancelException extends Exception {
|
---|
| 10 |
|
---|
[8919] | 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 | }
|
---|
[1001] | 47 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.