1. /*
  2. * @(#)OperationNotSupportedException.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 exception is thrown when a context implementation does not support
  13. * the operation being invoked.
  14. * For example, if a server does not support the Context.bind() method
  15. * it would throw OperationNotSupportedException when the bind() method
  16. * is invoked on it.
  17. * <p>
  18. * Synchronization and serialization issues that apply to NamingException
  19. * apply directly here.
  20. *
  21. * @author Rosanna Lee
  22. * @author Scott Seligman
  23. * @version 1.4 00/02/02
  24. * @since 1.3
  25. */
  26. public class OperationNotSupportedException extends NamingException {
  27. /**
  28. * Constructs a new instance of OperationNotSupportedException.
  29. * All fields default to null.
  30. */
  31. public OperationNotSupportedException() {
  32. super();
  33. }
  34. /**
  35. * Constructs a new instance of OperationNotSupportedException using an
  36. * explanation. All other fields default to null.
  37. *
  38. * @param explanation Possibly null additional detail about this exception
  39. * @see java.lang.Throwable#getMessage
  40. */
  41. public OperationNotSupportedException(String explanation) {
  42. super(explanation);
  43. }
  44. /**
  45. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  46. */
  47. private static final long serialVersionUID = 5493232822427682064L;
  48. }