rt/emul/mini/src/main/java/java/lang/ArrayStoreException.java
author Jaroslav Tulach <jaroslav.tulach@apidesign.org>
Tue, 26 Feb 2013 16:54:16 +0100
changeset 772 d382dacfd73f
parent 597 emul/mini/src/main/java/java/lang/ArrayStoreException.java@ee8a922f4268
permissions -rw-r--r--
Moving modules around so the runtime is under one master pom and can be built without building other modules that are in the repository
jaroslav@597
     1
/*
jaroslav@597
     2
 * Copyright (c) 1995, 2008, Oracle and/or its affiliates. All rights reserved.
jaroslav@597
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
jaroslav@597
     4
 *
jaroslav@597
     5
 * This code is free software; you can redistribute it and/or modify it
jaroslav@597
     6
 * under the terms of the GNU General Public License version 2 only, as
jaroslav@597
     7
 * published by the Free Software Foundation.  Oracle designates this
jaroslav@597
     8
 * particular file as subject to the "Classpath" exception as provided
jaroslav@597
     9
 * by Oracle in the LICENSE file that accompanied this code.
jaroslav@597
    10
 *
jaroslav@597
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
jaroslav@597
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
jaroslav@597
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
jaroslav@597
    14
 * version 2 for more details (a copy is included in the LICENSE file that
jaroslav@597
    15
 * accompanied this code).
jaroslav@597
    16
 *
jaroslav@597
    17
 * You should have received a copy of the GNU General Public License version
jaroslav@597
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
jaroslav@597
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
jaroslav@597
    20
 *
jaroslav@597
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
jaroslav@597
    22
 * or visit www.oracle.com if you need additional information or have any
jaroslav@597
    23
 * questions.
jaroslav@597
    24
 */
jaroslav@597
    25
jaroslav@597
    26
package java.lang;
jaroslav@597
    27
jaroslav@597
    28
/**
jaroslav@597
    29
 * Thrown to indicate that an attempt has been made to store the
jaroslav@597
    30
 * wrong type of object into an array of objects. For example, the
jaroslav@597
    31
 * following code generates an <code>ArrayStoreException</code>:
jaroslav@597
    32
 * <p><blockquote><pre>
jaroslav@597
    33
 *     Object x[] = new String[3];
jaroslav@597
    34
 *     x[0] = new Integer(0);
jaroslav@597
    35
 * </pre></blockquote>
jaroslav@597
    36
 *
jaroslav@597
    37
 * @author  unascribed
jaroslav@597
    38
 * @since   JDK1.0
jaroslav@597
    39
 */
jaroslav@597
    40
public
jaroslav@597
    41
class ArrayStoreException extends RuntimeException {
jaroslav@597
    42
    private static final long serialVersionUID = -4522193890499838241L;
jaroslav@597
    43
jaroslav@597
    44
    /**
jaroslav@597
    45
     * Constructs an <code>ArrayStoreException</code> with no detail message.
jaroslav@597
    46
     */
jaroslav@597
    47
    public ArrayStoreException() {
jaroslav@597
    48
        super();
jaroslav@597
    49
    }
jaroslav@597
    50
jaroslav@597
    51
    /**
jaroslav@597
    52
     * Constructs an <code>ArrayStoreException</code> with the specified
jaroslav@597
    53
     * detail message.
jaroslav@597
    54
     *
jaroslav@597
    55
     * @param   s   the detail message.
jaroslav@597
    56
     */
jaroslav@597
    57
    public ArrayStoreException(String s) {
jaroslav@597
    58
        super(s);
jaroslav@597
    59
    }
jaroslav@597
    60
}