< prev index next >

src/java.base/share/classes/java/lang/UnsupportedOperationException.java

Print this page

        

*** 61,89 **** * message. * * @param message the detail message (which is saved for later retrieval * by the {@link Throwable#getMessage()} method). * @param cause the cause (which is saved for later retrieval by the ! * {@link Throwable#getCause()} method). (A <tt>null</tt> value * is permitted, and indicates that the cause is nonexistent or * unknown.) * @since 1.5 */ public UnsupportedOperationException(String message, Throwable cause) { super(message, cause); } /** * Constructs a new exception with the specified cause and a detail ! * message of <tt>(cause==null ? null : cause.toString())</tt> (which ! * typically contains the class and detail message of <tt>cause</tt>). * This constructor is useful for exceptions that are little more than * wrappers for other throwables (for example, {@link * java.security.PrivilegedActionException}). * * @param cause the cause (which is saved for later retrieval by the ! * {@link Throwable#getCause()} method). (A <tt>null</tt> value is * permitted, and indicates that the cause is nonexistent or * unknown.) * @since 1.5 */ public UnsupportedOperationException(Throwable cause) { --- 61,89 ---- * message. * * @param message the detail message (which is saved for later retrieval * by the {@link Throwable#getMessage()} method). * @param cause the cause (which is saved for later retrieval by the ! * {@link Throwable#getCause()} method). (A {@code null} value * is permitted, and indicates that the cause is nonexistent or * unknown.) * @since 1.5 */ public UnsupportedOperationException(String message, Throwable cause) { super(message, cause); } /** * Constructs a new exception with the specified cause and a detail ! * message of {@code (cause==null ? null : cause.toString())} (which ! * typically contains the class and detail message of {@code cause}). * This constructor is useful for exceptions that are little more than * wrappers for other throwables (for example, {@link * java.security.PrivilegedActionException}). * * @param cause the cause (which is saved for later retrieval by the ! * {@link Throwable#getCause()} method). (A {@code null} value is * permitted, and indicates that the cause is nonexistent or * unknown.) * @since 1.5 */ public UnsupportedOperationException(Throwable cause) {
< prev index next >