1. /*
  2. * @(#)NoInitialContextException.java 1.6 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 no initial context implementation
  10. * can be created. The policy of how an initial context implementation
  11. * is selected is described in the documentation of the InitialContext class.
  12. *<p>
  13. * This exception can be thrown during any interaction with the
  14. * InitialContext, not only when the InitialContext is constructed.
  15. * For example, the implementation of the initial context might lazily
  16. * retrieve the context only when actual methods are invoked on it.
  17. * The application should not have any dependency on when the existence
  18. * of an initial context is determined.
  19. * <p>
  20. * Synchronization and serialization issues that apply to NamingException
  21. * apply directly here.
  22. *
  23. * @author Rosanna Lee
  24. * @author Scott Seligman
  25. * @version 1.6 03/01/23
  26. *
  27. * @see InitialContext
  28. * @see javax.naming.directory.InitialDirContext
  29. * @see javax.naming.spi.NamingManager#getInitialContext
  30. * @see javax.naming.spi.NamingManager#setInitialContextFactoryBuilder
  31. * @since 1.3
  32. */
  33. public class NoInitialContextException extends NamingException {
  34. /**
  35. * Constructs an instance of NoInitialContextException.
  36. * All fields are initialized to null.
  37. */
  38. public NoInitialContextException() {
  39. super();
  40. }
  41. /**
  42. * Constructs an instance of NoInitialContextException with an
  43. * explanation. All other fields are initialized to null.
  44. * @param explanation Possibly null additional detail about this exception.
  45. * @see java.lang.Throwable#getMessage
  46. */
  47. public NoInitialContextException(String explanation) {
  48. super(explanation);
  49. }
  50. /**
  51. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  52. */
  53. private static final long serialVersionUID = -3413733186901258623L;
  54. }