1. /*
  2. * @(#)LimitExceededException.java 1.4 00/02/02
  3. *
  4. * Copyright 1999, 2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package javax.naming;
  11. import javax.naming.Name;
  12. /**
  13. * This exception is thrown when a method
  14. * terminates abnormally due to a user or system specified limit.
  15. * This is different from a InsufficientResourceException in that
  16. * LimitExceededException is due to a user/system specified limit.
  17. * For example, running out of memory to complete the request would
  18. * be an insufficient resource. The client asking for 10 answers and
  19. * getting back 11 is a size limit exception.
  20. *<p>
  21. * Examples of these limits include client and server configuration
  22. * limits such as size, time, number of hops, etc.
  23. * <p>
  24. * Synchronization and serialization issues that apply to NamingException
  25. * apply directly here.
  26. *
  27. * @author Rosanna Lee
  28. * @author Scott Seligman
  29. * @version 1.4 00/02/02
  30. * @since 1.3
  31. */
  32. public class LimitExceededException extends NamingException {
  33. /**
  34. * Constructs a new instance of LimitExceededException with
  35. * all name resolution fields and explanation initialized to null.
  36. */
  37. public LimitExceededException() {
  38. super();
  39. }
  40. /**
  41. * Constructs a new instance of LimitExceededException using an
  42. * explanation. All other fields default to null.
  43. * @param explanation Possibly null detail about this exception.
  44. * @see java.lang.Throwable#getMessage
  45. */
  46. public LimitExceededException(String explanation) {
  47. super(explanation);
  48. }
  49. /**
  50. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  51. */
  52. private static final long serialVersionUID = -776898738660207856L;
  53. }