1. /*
  2. * @(#)OperationNotSupportedException.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 a context implementation does not support
  10. * the operation being invoked.
  11. * For example, if a server does not support the Context.bind() method
  12. * it would throw OperationNotSupportedException when the bind() method
  13. * is invoked on it.
  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 OperationNotSupportedException extends NamingException {
  24. /**
  25. * Constructs a new instance of OperationNotSupportedException.
  26. * All fields default to null.
  27. */
  28. public OperationNotSupportedException() {
  29. super();
  30. }
  31. /**
  32. * Constructs a new instance of OperationNotSupportedException using an
  33. * explanation. 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 OperationNotSupportedException(String explanation) {
  39. super(explanation);
  40. }
  41. /**
  42. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  43. */
  44. private static final long serialVersionUID = 5493232822427682064L;
  45. }