View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *     http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17
    18  /*
    19   * JDOObjectNotFoundException.java
    20   *
    21   */
    22
    23  package javax.jdo;
    24
    25  /** This class represents exceptions caused by the user accessing
    26   * an object that does not exist in the datastore.
    27   *
    28   * @since 1.0.1
    29   * @version 1.0.1
    30   */
    31  public class JDOObjectNotFoundException extends JDODataStoreException {
    32
    33    /**
    34     * Constructs a new <code>JDOObjectNotFoundException</code>
    35     * without a detail message.
    36     */
    37    public JDOObjectNotFoundException() {
    38    }
    39
    40
    41    /**
    42     * Constructs a new <code>JDOObjectNotFoundException</code>
    43     * with the specified detail message.
    44     * @param msg the detail message.
    45     */
    46    public JDOObjectNotFoundException(String msg) {
    47      super(msg);
    48    }
    49
    50    /** Constructs a new <code>JDOObjectNotFoundException</code> with the specified detail message
    51     * and failed object.
    52     * @param msg the detail message.
    53     * @param failed the failed object.
    54     */
    55    public JDOObjectNotFoundException(String msg, Object failed) {
    56      super(msg, failed);
    57    }
    58
    59    /**
    60     * Constructs a new <code>JDOObjectNotFoundException</code> with the
    61     * specified detail message and nested <code>Throwable</code>s.
    62     * @param msg the detail message.
    63     * @param nested the nested <code>Throwable</code>.
    64     */
    65    public JDOObjectNotFoundException(String msg, Throwable nested) {
    66      super(msg, nested);
    67    }
    68
    69    /**
    70     * Constructs a new <code>JDOObjectNotFoundException</code> with the
    71     * specified detail message and nested <code>Throwable</code>s.
    72     * @param msg the detail message.
    73     * @param nested the nested <code>Throwable[]</code>.
    74     */
    75    public JDOObjectNotFoundException(String msg, Throwable[] nested) {
    76      super(msg, nested);
    77    }
    78
    79
    80    /**
    81     * Constructs a new <code>JDOObjectNotFoundException</code> with the specified
    82     * detail message, nested <code>Throwable</code>s, and failed object.
    83     * @param msg the detail message.
    84     * @param nested the nested <code>Throwable[]</code>.
    85     * @param failed the failed object.
    86     */
    87    public JDOObjectNotFoundException(String msg, Throwable[] nested, Object failed) {
    88      super(msg, nested, failed);
    89    }
    90
    91    /**
    92     * Constructs a new <code>JDOFatalInternalException</code> with the specified
    93     * detail message, nested <code>Throwable</code>s, and failed object.
    94     * @param msg the detail message.
    95     * @param nested the nested <code>Throwable</code>.
    96     * @param failed the failed object.
    97     */
    98    public JDOObjectNotFoundException(String msg, Throwable nested, Object failed) {
    99      super(msg, nested, failed);
    100   }
    101 }
    102