KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > naming > InterruptedNamingException


1 /*
2  * @(#)InterruptedNamingException.java 1.8 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package javax.naming;
9
10 /**
11   * This exception is thrown when the naming operation
12   * being invoked has been interrupted. For example, an application
13   * might interrupt a thread that is performing a search. If the
14   * search supports being interrupted, it will throw
15   * InterruptedNamingException. Whether an operation is interruptible
16   * and when depends on its implementation (as provided by the
17   * service providers). Different implementations have different ways
18   * of protecting their resources and objects from being damaged
19   * due to unexpected interrupts.
20   * <p>
21   * Synchronization and serialization issues that apply to NamingException
22   * apply directly here.
23   *
24   * @author Rosanna Lee
25   * @author Scott Seligman
26   * @version 1.8 03/12/19
27   *
28   * @see Context
29   * @see javax.naming.directory.DirContext
30   * @see java.lang.Thread#interrupt
31   * @see java.lang.InterruptedException
32   * @since 1.3
33   */

34
35 public class InterruptedNamingException extends NamingException JavaDoc {
36     /**
37       * Constructs an instance of InterruptedNamingException using an
38       * explanation of the problem.
39       * All name resolution-related fields are initialized to null.
40       * @param explanation A possibly null message explaining the problem.
41       * @see java.lang.Throwable#getMessage
42       */

43     public InterruptedNamingException(String JavaDoc explanation) {
44     super(explanation);
45     }
46
47     /**
48       * Constructs an instance of InterruptedNamingException with
49       * all name resolution fields and explanation initialized to null.
50       */

51     public InterruptedNamingException() {
52     super();
53     }
54
55     /**
56      * Use serialVersionUID from JNDI 1.1.1 for interoperability
57      */

58     private static final long serialVersionUID = 6404516648893194728L;
59 }
60
Popular Tags