emul/mini/src/main/java/java/lang/CloneNotSupportedException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 23 Jan 2013 20:39:23 +0100
branchemul
changeset 554 05224402145d
parent 49 emul/src/main/java/java/lang/CloneNotSupportedException.java@0a115f1c6f3c
permissions -rw-r--r--
First attempt to separate 'mini' profile from the rest of JDK APIs
jaroslav@49
     1
/*
jaroslav@49
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jaroslav@49
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@49
     4
 *
jaroslav@49
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@49
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@49
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@49
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@49
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@49
    10
 *
jaroslav@49
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@49
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@49
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@49
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@49
    15
 * accompanied this code).
jaroslav@49
    16
 *
jaroslav@49
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@49
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@49
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@49
    20
 *
jaroslav@49
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@49
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@49
    23
 * questions.
jaroslav@49
    24
 */
jaroslav@49
    25
jaroslav@49
    26
package java.lang;
jaroslav@49
    27
jaroslav@49
    28
/**
jaroslav@49
    29
 * Thrown to indicate that the <code>clone</code> method in class
jaroslav@49
    30
 * <code>Object</code> has been called to clone an object, but that
jaroslav@49
    31
 * the object's class does not implement the <code>Cloneable</code>
jaroslav@49
    32
 * interface.
jaroslav@49
    33
 * <p>
jaroslav@49
    34
 * Applications that override the <code>clone</code> method can also
jaroslav@49
    35
 * throw this exception to indicate that an object could not or
jaroslav@49
    36
 * should not be cloned.
jaroslav@49
    37
 *
jaroslav@49
    38
 * @author  unascribed
jaroslav@49
    39
 * @see     java.lang.Cloneable
jaroslav@49
    40
 * @see     java.lang.Object#clone()
jaroslav@49
    41
 * @since   JDK1.0
jaroslav@49
    42
 */
jaroslav@49
    43
jaroslav@49
    44
public
jaroslav@49
    45
class CloneNotSupportedException extends Exception {
jaroslav@49
    46
    private static final long serialVersionUID = 5195511250079656443L;
jaroslav@49
    47
jaroslav@49
    48
    /**
jaroslav@49
    49
     * Constructs a <code>CloneNotSupportedException</code> with no
jaroslav@49
    50
     * detail message.
jaroslav@49
    51
     */
jaroslav@49
    52
    public CloneNotSupportedException() {
jaroslav@49
    53
        super();
jaroslav@49
    54
    }
jaroslav@49
    55
jaroslav@49
    56
    /**
jaroslav@49
    57
     * Constructs a <code>CloneNotSupportedException</code> with the
jaroslav@49
    58
     * specified detail message.
jaroslav@49
    59
     *
jaroslav@49
    60
     * @param   s   the detail message.
jaroslav@49
    61
     */
jaroslav@49
    62
    public CloneNotSupportedException(String s) {
jaroslav@49
    63
        super(s);
jaroslav@49
    64
    }
jaroslav@49
    65
}