61 * message. |
61 * message. |
62 * |
62 * |
63 * @param message the detail message (which is saved for later retrieval |
63 * @param message the detail message (which is saved for later retrieval |
64 * by the {@link Throwable#getMessage()} method). |
64 * by the {@link Throwable#getMessage()} method). |
65 * @param cause the cause (which is saved for later retrieval by the |
65 * @param cause the cause (which is saved for later retrieval by the |
66 * {@link Throwable#getCause()} method). (A <tt>null</tt> value |
66 * {@link Throwable#getCause()} method). (A {@code null} value |
67 * is permitted, and indicates that the cause is nonexistent or |
67 * is permitted, and indicates that the cause is nonexistent or |
68 * unknown.) |
68 * unknown.) |
69 * @since 1.5 |
69 * @since 1.5 |
70 */ |
70 */ |
71 public UnsupportedOperationException(String message, Throwable cause) { |
71 public UnsupportedOperationException(String message, Throwable cause) { |
72 super(message, cause); |
72 super(message, cause); |
73 } |
73 } |
74 |
74 |
75 /** |
75 /** |
76 * Constructs a new exception with the specified cause and a detail |
76 * Constructs a new exception with the specified cause and a detail |
77 * message of <tt>(cause==null ? null : cause.toString())</tt> (which |
77 * message of {@code (cause==null ? null : cause.toString())} (which |
78 * typically contains the class and detail message of <tt>cause</tt>). |
78 * typically contains the class and detail message of {@code cause}). |
79 * This constructor is useful for exceptions that are little more than |
79 * This constructor is useful for exceptions that are little more than |
80 * wrappers for other throwables (for example, {@link |
80 * wrappers for other throwables (for example, {@link |
81 * java.security.PrivilegedActionException}). |
81 * java.security.PrivilegedActionException}). |
82 * |
82 * |
83 * @param cause the cause (which is saved for later retrieval by the |
83 * @param cause the cause (which is saved for later retrieval by the |
84 * {@link Throwable#getCause()} method). (A <tt>null</tt> value is |
84 * {@link Throwable#getCause()} method). (A {@code null} value is |
85 * permitted, and indicates that the cause is nonexistent or |
85 * permitted, and indicates that the cause is nonexistent or |
86 * unknown.) |
86 * unknown.) |
87 * @since 1.5 |
87 * @since 1.5 |
88 */ |
88 */ |
89 public UnsupportedOperationException(Throwable cause) { |
89 public UnsupportedOperationException(Throwable cause) { |