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