1. /*
  2. * @(#)ServiceUnavailableException.java 1.7 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package javax.naming;
  8. /**
  9. * This exception is thrown when attempting to communicate with a
  10. * directory or naming service and that service is not available.
  11. * It might be unavailable for different reasons. For example,
  12. * the server might be too busy to service the request, or the server
  13. * might not be registered to service any requests, etc.
  14. * <p>
  15. * Synchronization and serialization issues that apply to NamingException
  16. * apply directly here.
  17. *
  18. * @author Rosanna Lee
  19. * @author Scott Seligman
  20. *
  21. * @version 1.7 03/01/23
  22. * @since 1.3
  23. */
  24. public class ServiceUnavailableException extends NamingException {
  25. /**
  26. * Constructs a new instance of ServiceUnavailableException using an
  27. * explanation. All other fields default to null.
  28. *
  29. * @param explanation Possibly null additional detail about this exception.
  30. * @see java.lang.Throwable#getMessage
  31. */
  32. public ServiceUnavailableException(String explanation) {
  33. super(explanation);
  34. }
  35. /**
  36. * Constructs a new instance of ServiceUnavailableException.
  37. * All fields default to null.
  38. */
  39. public ServiceUnavailableException() {
  40. super();
  41. }
  42. /**
  43. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  44. */
  45. private static final long serialVersionUID = -4996964726566773444L;
  46. }