01 /*
02 * Copyright 1999 Sun Microsystems, Inc. All Rights Reserved.
03 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
04 *
05 * This code is free software; you can redistribute it and/or modify it
06 * under the terms of the GNU General Public License version 2 only, as
07 * published by the Free Software Foundation. Sun designates this
08 * particular file as subject to the "Classpath" exception as provided
09 * by Sun in the LICENSE file that accompanied this code.
10 *
11 * This code is distributed in the hope that it will be useful, but WITHOUT
12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14 * version 2 for more details (a copy is included in the LICENSE file that
15 * accompanied this code).
16 *
17 * You should have received a copy of the GNU General Public License version
18 * 2 along with this work; if not, write to the Free Software Foundation,
19 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20 *
21 * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
22 * CA 95054 USA or visit www.sun.com if you need additional information or
23 * have any questions.
24 */
25
26 package javax.naming;
27
28 import javax.naming.Name;
29
30 /**
31 * This exception is thrown when a method
32 * terminates abnormally due to a user or system specified limit.
33 * This is different from a InsufficientResourceException in that
34 * LimitExceededException is due to a user/system specified limit.
35 * For example, running out of memory to complete the request would
36 * be an insufficient resource. The client asking for 10 answers and
37 * getting back 11 is a size limit exception.
38 *<p>
39 * Examples of these limits include client and server configuration
40 * limits such as size, time, number of hops, etc.
41 * <p>
42 * Synchronization and serialization issues that apply to NamingException
43 * apply directly here.
44 *
45 * @author Rosanna Lee
46 * @author Scott Seligman
47 * @version 1.14 07/05/05
48 * @since 1.3
49 */
50
51 public class LimitExceededException extends NamingException {
52 /**
53 * Constructs a new instance of LimitExceededException with
54 * all name resolution fields and explanation initialized to null.
55 */
56 public LimitExceededException() {
57 super ();
58 }
59
60 /**
61 * Constructs a new instance of LimitExceededException using an
62 * explanation. All other fields default to null.
63 * @param explanation Possibly null detail about this exception.
64 * @see java.lang.Throwable#getMessage
65 */
66 public LimitExceededException(String explanation) {
67 super (explanation);
68 }
69
70 /**
71 * Use serialVersionUID from JNDI 1.1.1 for interoperability
72 */
73 private static final long serialVersionUID = -776898738660207856L;
74 }
|