< prev index next >

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

Print this page




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

  93     static final long serialVersionUID = -1242599979055084673L;
  94 }


  73     }
  74 
  75     /**
  76      * Constructs a new exception with the specified cause and a detail
  77      * message of {@code (cause==null ? null : cause.toString())} (which
  78      * typically contains the class and detail message of {@code cause}).
  79      * This constructor is useful for exceptions that are little more than
  80      * wrappers for other throwables (for example, {@link
  81      * java.security.PrivilegedActionException}).
  82      *
  83      * @param  cause the cause (which is saved for later retrieval by the
  84      *         {@link Throwable#getCause()} method).  (A {@code null} value is
  85      *         permitted, and indicates that the cause is nonexistent or
  86      *         unknown.)
  87      * @since  1.5
  88      */
  89     public UnsupportedOperationException(Throwable cause) {
  90         super(cause);
  91     }
  92 
  93     @java.io.Serial
  94     static final long serialVersionUID = -1242599979055084673L;
  95 }
< prev index next >