Revision 20100 branches/v10/libraries/libFMap/src/com/iver/cit/gvsig/fmap/layers/CancelationException.java
CancelationException.java | ||
---|---|---|
42 | 42 |
|
43 | 43 |
/** |
44 | 44 |
* <p>There are classes and event handlers that allow cancel some of their operations when they are running. |
45 |
* If fails this cancellation, an <code>CancelationException</code> exception is thrown.</p>
|
|
45 |
* If fails that cancellation, a <code>CancelationException</code> exception is thrown.</p>
|
|
46 | 46 |
* |
47 | 47 |
* @see RuntimeException |
48 | 48 |
*/ |
49 | 49 |
public class CancelationException extends RuntimeException { |
50 | 50 |
/** |
51 |
* @see RuntimeException#RuntimeException() |
|
51 |
* <p>Constructs a new cancelation exception with <code>null</code> as its detail message. |
|
52 |
* The cause is not initialized, and may subsequently be initialized by a call to <code>initCause</code>.</p> |
|
52 | 53 |
*/ |
53 | 54 |
public CancelationException() { |
54 | 55 |
super(); |
55 | 56 |
} |
56 | 57 |
|
57 | 58 |
/** |
58 |
* @see RuntimeException#RuntimeException(String) |
|
59 |
* <p>Constructs a new cancelation exception with the specified detail message. The cause is not |
|
60 |
* initialized, and may subsequently be initialized by a call to <code>initCause</code>. |
|
61 |
* |
|
62 |
* @param message the detail message. The detail message is saved for later retrieval by the <code>getMessage()</code> method. |
|
59 | 63 |
*/ |
60 | 64 |
public CancelationException(String message) { |
61 | 65 |
super(message); |
62 | 66 |
} |
63 | 67 |
|
64 | 68 |
/** |
65 |
* @see RuntimeException#RuntimeException(String, Throwable) |
|
69 |
* <p>Constructs a new cancelation exception with the specified detail message and cause.</p> |
|
70 |
* <p>Note that the detail message associated with cause is not automatically incorporated in this |
|
71 |
* exception's detail message.</p> |
|
72 |
* |
|
73 |
* @param message the detail message (which is saved for later retrieval by the <code>getMessage()</code> method). |
|
74 |
* @param cause the cause (which is saved for later retrieval by the <code>getCause()</code> method). (A <code>null</code> |
|
75 |
* value is permitted, and indicates that the cause is nonexistent or unknown). |
|
66 | 76 |
*/ |
67 | 77 |
public CancelationException(String message, Throwable cause) { |
68 | 78 |
super(message, cause); |
69 | 79 |
} |
70 | 80 |
|
71 | 81 |
/** |
72 |
* @see RuntimeException#RuntimeException(Throwable) |
|
82 |
* <p>Constructs a cancelation exception with the specified <code>cause</code> and a detail message of <code>(cause==null ? |
|
83 |
* null : cause.toString())</code> (which typically contains the class and detailed information about cause). |
|
84 |
* |
|
85 |
* @param cause the cause (which is saved for later retrieval by the <code>getCause()</code> method). (A <code>null</code> |
|
86 |
* value is permitted, and indicates that the cause is nonexistent or unknown). |
|
73 | 87 |
*/ |
74 | 88 |
public CancelationException(Throwable cause) { |
75 | 89 |
super(cause); |
Also available in: Unified diff