1. /*
  2. * @(#)InvalidSearchControlsException.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.directory;
  8. import javax.naming.NamingException;
  9. /**
  10. * This exception is thrown when the specification of
  11. * the SearchControls for a search operation is invalid. For example, if the scope is
  12. * set to a value other than OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE,
  13. * this exception is thrown.
  14. * <p>
  15. * Synchronization and serialization issues that apply to NamingException
  16. * apply directly here.
  17. *
  18. * @author Rosanna Lee
  19. * @author Scott Seligman
  20. * @version 1.7 03/12/19
  21. * @since 1.3
  22. */
  23. public class InvalidSearchControlsException extends NamingException {
  24. /**
  25. * Constructs a new instance of InvalidSearchControlsException.
  26. * All fields are set to null.
  27. */
  28. public InvalidSearchControlsException() {
  29. super();
  30. }
  31. /**
  32. * Constructs a new instance of InvalidSearchControlsException
  33. * with an explanation. All other fields set to null.
  34. * @param msg Detail about this exception. Can be null.
  35. * @see java.lang.Throwable#getMessage
  36. */
  37. public InvalidSearchControlsException(String msg) {
  38. super(msg);
  39. }
  40. /**
  41. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  42. */
  43. private static final long serialVersionUID = -5124108943352665777L;
  44. }