KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > javax > naming > LimitExceededException


1 /*
2  * @(#)LimitExceededException.java 1.7 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
9 package javax.naming;
10
11 import javax.naming.Name JavaDoc;
12
13 /**
14   * This exception is thrown when a method
15   * terminates abnormally due to a user or system specified limit.
16   * This is different from a InsufficientResourceException in that
17   * LimitExceededException is due to a user/system specified limit.
18   * For example, running out of memory to complete the request would
19   * be an insufficient resource. The client asking for 10 answers and
20   * getting back 11 is a size limit exception.
21   *<p>
22   * Examples of these limits include client and server configuration
23   * limits such as size, time, number of hops, etc.
24   * <p>
25   * Synchronization and serialization issues that apply to NamingException
26   * apply directly here.
27   *
28   * @author Rosanna Lee
29   * @author Scott Seligman
30   * @version 1.7 03/12/19
31   * @since 1.3
32   */

33
34 public class LimitExceededException extends NamingException JavaDoc {
35     /**
36      * Constructs a new instance of LimitExceededException with
37       * all name resolution fields and explanation initialized to null.
38      */

39     public LimitExceededException() {
40     super();
41     }
42
43     /**
44      * Constructs a new instance of LimitExceededException using an
45      * explanation. All other fields default to null.
46      * @param explanation Possibly null detail about this exception.
47      * @see java.lang.Throwable#getMessage
48      */

49     public LimitExceededException(String JavaDoc explanation) {
50     super(explanation);
51     }
52
53     /**
54      * Use serialVersionUID from JNDI 1.1.1 for interoperability
55      */

56     private static final long serialVersionUID = -776898738660207856L;
57 }
58
Popular Tags