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