44 |
* requested of it that it does not support. |
* requested of it that it does not support. |
45 |
* |
* |
46 |
* @author Warren Levy (warrenl@cygnus.com) |
* @author Warren Levy (warrenl@cygnus.com) |
47 |
|
* @author Andrew John Hughes (gnu_andrew@member.fsf.org) |
48 |
* @since 1.2 |
* @since 1.2 |
49 |
* @status updated to 1.4 |
* @status updated to 1.5 |
50 |
*/ |
*/ |
51 |
public class UnsupportedOperationException extends RuntimeException |
public class UnsupportedOperationException extends RuntimeException |
52 |
{ |
{ |
71 |
{ |
{ |
72 |
super(s); |
super(s); |
73 |
} |
} |
74 |
|
|
75 |
|
/** |
76 |
|
* <p> |
77 |
|
* Constructs a <code>UnsupportedOperationException</code> using |
78 |
|
* the specified error message, which should give further details |
79 |
|
* as to the reason for this exception. The specified cause |
80 |
|
* <code>Throwable</code> may be used to provide additional history, |
81 |
|
* with regards to the root of the problem. It is perfectly valid |
82 |
|
* for this to be null, if the cause of the problem is unknown. |
83 |
|
* </p> |
84 |
|
* <p> |
85 |
|
* <strong>Note</strong>: the detail message from the cause is not |
86 |
|
* automatically incorporated into the resulting detail message of |
87 |
|
* this exception. |
88 |
|
* </p> |
89 |
|
* |
90 |
|
* @param message the detail message, which should give the reason for |
91 |
|
* this exception being thrown. |
92 |
|
* @param cause the cause of this exception, or null if the cause |
93 |
|
* is unknown. |
94 |
|
* @since 1.5 |
95 |
|
*/ |
96 |
|
public UnsupportedOperationException(String message, Throwable cause) |
97 |
|
{ |
98 |
|
super(message, cause); |
99 |
|
} |
100 |
|
|
101 |
|
/** |
102 |
|
* <p> |
103 |
|
* Constructs a <code>UnsupportedOperationException</code> using |
104 |
|
* the specified cause <code>Throwable</code>, which may be used |
105 |
|
* to provide additional history, with regards to the root of the |
106 |
|
* problem. It is perfectly valid for this to be null, if the |
107 |
|
* cause of the problem is unknown. |
108 |
|
* </p> |
109 |
|
* <p> |
110 |
|
* The detail message is automatically constructed from the detail |
111 |
|
* message of the supplied causal exception. If the cause is null, |
112 |
|
* then the detail message will also be null. Otherwise, the detail |
113 |
|
* message of this exception will be that of the causal exception. |
114 |
|
* This makes this constructor very useful for simply wrapping another |
115 |
|
* exception. |
116 |
|
* </p> |
117 |
|
* |
118 |
|
* @param cause the cause of this exception, or null if the cause |
119 |
|
* is unknown. |
120 |
|
* @since 1.5 |
121 |
|
*/ |
122 |
|
public UnsupportedOperationException(Throwable cause) |
123 |
|
{ |
124 |
|
super(cause); |
125 |
|
} |
126 |
|
|
127 |
} |
} |