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   * JDONullIdentityException.java
    20   *
    21   */
    22
    23  package javax.jdo;
    24
    25  /** An instance of this class is thrown when attempting to create an object id
    26   *  when the object id constructor parameter is null. This might occur when
    27   *  creating an object id instance from a transient instance where an identity
    28   *  field is null.
    29   *
    30   * @since 2.0
    31   * @version 2.0
    32   */
    33  public class JDONullIdentityException extends JDOUserException {
    34
    35    /**
    36     * Constructs a new <code>JDONullIdentityException</code> without a detail message.
    37     */
    38    public JDONullIdentityException() {
    39    }
    40
    41    /**
    42     * Constructs a new <code>JDONullIdentityException</code> with the specified detail message.
    43     * @param msg the detail message.
    44     */
    45    public JDONullIdentityException(String msg) {
    46      super(msg);
    47    }
    48
    49    /** Constructs a new <code>JDONullIdentityException</code> with the specified detail message
    50     * and failed object.
    51     * @param msg the detail message.
    52     * @param failed the failed object.
    53     */
    54    public JDONullIdentityException(String msg, Object failed) {
    55      super(msg, failed);
    56    }
    57
    58    /**
    59     * Constructs a new <code>JDONullIdentityException</code> with the specified
    60     * detail message and nested <code>Throwable</code>s.
    61     * @param msg the detail message.
    62     * @param nested the nested <code>Throwable[]</code>.
    63     */
    64    public JDONullIdentityException(String msg, Throwable[] nested) {
    65      super(msg, nested);
    66    }
    67
    68    /**
    69     * Constructs a new <code>JDONullIdentityException</code> with the specified detail message
    70     * and nested <code>Throwable</code>s.
    71     * @param msg the detail message.
    72     * @param nested the nested <code>Throwable</code>.
    73     */
    74    public JDONullIdentityException(String msg, Throwable nested) {
    75      super(msg, nested);
    76    }
    77
    78  }