1. /*
  2. * @(#)NoPermissionException.java 1.7 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 exception is thrown when attempting to perform an operation
  10. * for which the client has no permission. The access control/permission
  11. * model is dictated by the directory/naming server.
  12. *
  13. * <p>
  14. * Synchronization and serialization issues that apply to NamingException
  15. * apply directly here.
  16. *
  17. * @author Rosanna Lee
  18. * @author Scott Seligman
  19. * @version 1.7 03/12/19
  20. * @since 1.3
  21. */
  22. public class NoPermissionException extends NamingSecurityException {
  23. /**
  24. * Constructs a new instance of NoPermissionException using an
  25. * explanation. All other fields default to null.
  26. *
  27. * @param explanation Possibly null additional detail about this exception.
  28. */
  29. public NoPermissionException(String explanation) {
  30. super(explanation);
  31. }
  32. /**
  33. * Constructs a new instance of NoPermissionException.
  34. * All fields are initialized to null.
  35. */
  36. public NoPermissionException() {
  37. super();
  38. }
  39. /**
  40. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  41. */
  42. private static final long serialVersionUID = 8395332708699751775L;
  43. }