src/java.base/share/classes/java/lang/CloneNotSupportedException.java
changeset 58288 48e480e56aad
parent 57956 e0b8b019d2f5
child 58679 9c3209ff7550
child 59201 b24f4caa1411
equal deleted inserted replaced
58287:a7f16447085e 58288:48e480e56aad
    24  */
    24  */
    25 
    25 
    26 package java.lang;
    26 package java.lang;
    27 
    27 
    28 /**
    28 /**
    29  * Thrown to indicate that the <code>clone</code> method in class
    29  * Thrown to indicate that the {@code clone} method in class
    30  * <code>Object</code> has been called to clone an object, but that
    30  * {@code Object} has been called to clone an object, but that
    31  * the object's class does not implement the <code>Cloneable</code>
    31  * the object's class does not implement the {@code Cloneable}
    32  * interface.
    32  * interface.
    33  * <p>
    33  * <p>
    34  * Applications that override the <code>clone</code> method can also
    34  * Applications that override the {@code clone} method can also
    35  * throw this exception to indicate that an object could not or
    35  * throw this exception to indicate that an object could not or
    36  * should not be cloned.
    36  * should not be cloned.
    37  *
    37  *
    38  * @author  unascribed
    38  * @author  unascribed
    39  * @see     java.lang.Cloneable
    39  * @see     java.lang.Cloneable
    45 class CloneNotSupportedException extends Exception {
    45 class CloneNotSupportedException extends Exception {
    46     @java.io.Serial
    46     @java.io.Serial
    47     private static final long serialVersionUID = 5195511250079656443L;
    47     private static final long serialVersionUID = 5195511250079656443L;
    48 
    48 
    49     /**
    49     /**
    50      * Constructs a <code>CloneNotSupportedException</code> with no
    50      * Constructs a {@code CloneNotSupportedException} with no
    51      * detail message.
    51      * detail message.
    52      */
    52      */
    53     public CloneNotSupportedException() {
    53     public CloneNotSupportedException() {
    54         super();
    54         super();
    55     }
    55     }
    56 
    56 
    57     /**
    57     /**
    58      * Constructs a <code>CloneNotSupportedException</code> with the
    58      * Constructs a {@code CloneNotSupportedException} with the
    59      * specified detail message.
    59      * specified detail message.
    60      *
    60      *
    61      * @param   s   the detail message.
    61      * @param   s   the detail message.
    62      */
    62      */
    63     public CloneNotSupportedException(String s) {
    63     public CloneNotSupportedException(String s) {