src/share/classes/java/rmi/server/ServerCloneException.java

Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:


  24  */
  25 
  26 package java.rmi.server;
  27 
  28 /**
  29  * A <code>ServerCloneException</code> is thrown if a remote exception occurs
  30  * during the cloning of a <code>UnicastRemoteObject</code>.
  31  *
  32  * <p>As of release 1.4, this exception has been retrofitted to conform to
  33  * the general purpose exception-chaining mechanism.  The "nested exception"
  34  * that may be provided at construction time and accessed via the public
  35  * {@link #detail} field is now known as the <i>cause</i>, and may be
  36  * accessed via the {@link Throwable#getCause()} method, as well as
  37  * the aforementioned "legacy field."
  38  *
  39  * <p>Invoking the method {@link Throwable#initCause(Throwable)} on an
  40  * instance of <code>ServerCloneException</code> always throws {@link
  41  * IllegalStateException}.
  42  *
  43  * @author  Ann Wollrath
  44  * @since   JDK1.1
  45  * @see     java.rmi.server.UnicastRemoteObject#clone()
  46  */
  47 public class ServerCloneException extends CloneNotSupportedException {
  48 
  49     /**
  50      * The cause of the exception.
  51      *
  52      * <p>This field predates the general-purpose exception chaining facility.
  53      * The {@link Throwable#getCause()} method is now the preferred means of
  54      * obtaining this information.
  55      *
  56      * @serial
  57      */
  58     public Exception detail;
  59 
  60     /* indicate compatibility with JDK 1.1.x version of class */
  61     private static final long serialVersionUID = 6617456357664815945L;
  62 
  63     /**
  64      * Constructs a <code>ServerCloneException</code> with the specified




  24  */
  25 
  26 package java.rmi.server;
  27 
  28 /**
  29  * A <code>ServerCloneException</code> is thrown if a remote exception occurs
  30  * during the cloning of a <code>UnicastRemoteObject</code>.
  31  *
  32  * <p>As of release 1.4, this exception has been retrofitted to conform to
  33  * the general purpose exception-chaining mechanism.  The "nested exception"
  34  * that may be provided at construction time and accessed via the public
  35  * {@link #detail} field is now known as the <i>cause</i>, and may be
  36  * accessed via the {@link Throwable#getCause()} method, as well as
  37  * the aforementioned "legacy field."
  38  *
  39  * <p>Invoking the method {@link Throwable#initCause(Throwable)} on an
  40  * instance of <code>ServerCloneException</code> always throws {@link
  41  * IllegalStateException}.
  42  *
  43  * @author  Ann Wollrath
  44  * @since   1.1
  45  * @see     java.rmi.server.UnicastRemoteObject#clone()
  46  */
  47 public class ServerCloneException extends CloneNotSupportedException {
  48 
  49     /**
  50      * The cause of the exception.
  51      *
  52      * <p>This field predates the general-purpose exception chaining facility.
  53      * The {@link Throwable#getCause()} method is now the preferred means of
  54      * obtaining this information.
  55      *
  56      * @serial
  57      */
  58     public Exception detail;
  59 
  60     /* indicate compatibility with JDK 1.1.x version of class */
  61     private static final long serialVersionUID = 6617456357664815945L;
  62 
  63     /**
  64      * Constructs a <code>ServerCloneException</code> with the specified