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. package javax.naming;
  8. import javax.naming.Name;
  9. /**
  10. * This exception is thrown when a method
  11. * terminates abnormally due to a user or system specified limit.
  12. * This is different from a InsufficientResourceException in that
  13. * LimitExceededException is due to a user/system specified limit.
  14. * For example, running out of memory to complete the request would
  15. * be an insufficient resource. The client asking for 10 answers and
  16. * getting back 11 is a size limit exception.
  17. *<p>
  18. * Examples of these limits include client and server configuration
  19. * limits such as size, time, number of hops, etc.
  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.7 03/12/19
  27. * @since 1.3
  28. */
  29. public class LimitExceededException extends NamingException {
  30. /**
  31. * Constructs a new instance of LimitExceededException with
  32. * all name resolution fields and explanation initialized to null.
  33. */
  34. public LimitExceededException() {
  35. super();
  36. }
  37. /**
  38. * Constructs a new instance of LimitExceededException using an
  39. * explanation. All other fields default to null.
  40. * @param explanation Possibly null detail about this exception.
  41. * @see java.lang.Throwable#getMessage
  42. */
  43. public LimitExceededException(String explanation) {
  44. super(explanation);
  45. }
  46. /**
  47. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  48. */
  49. private static final long serialVersionUID = -776898738660207856L;
  50. }