1. /*
  2. * @(#)NamingSecurityException.java 1.8 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. /**
  9. * This is the superclass of security-related exceptions
  10. * thrown by operations in the Context and DirContext interfaces.
  11. * The nature of the failure is described by the name of the subclass.
  12. *<p>
  13. * If the program wants to handle this exception in particular, it
  14. * should catch NamingSecurityException explicitly before attempting to
  15. * catch NamingException. A program might want to do this, for example,
  16. * if it wants to treat security-related exceptions specially from
  17. * other sorts of naming exception.
  18. * <p>
  19. * Synchronization and serialization issues that apply to NamingException
  20. * apply directly here.
  21. *
  22. * @author Rosanna Lee
  23. * @author Scott Seligman
  24. * @version 1.8 03/12/19
  25. * @since 1.3
  26. */
  27. public abstract class NamingSecurityException extends NamingException {
  28. /**
  29. * Constructs a new instance of NamingSecurityException using the
  30. * explanation supplied. All other fields default to null.
  31. *
  32. * @param explanation Possibly null additional detail about this exception.
  33. * @see java.lang.Throwable#getMessage
  34. */
  35. public NamingSecurityException(String explanation) {
  36. super(explanation);
  37. }
  38. /**
  39. * Constructs a new instance of NamingSecurityException.
  40. * All fields are initialized to null.
  41. */
  42. public NamingSecurityException() {
  43. super();
  44. }
  45. /**
  46. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  47. */
  48. private static final long serialVersionUID = 5855287647294685775L;
  49. };