1. /*
  2. * @(#)InterruptedNamingException.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 the naming operation
  13. * being invoked has been interrupted. For example, an application
  14. * might interrupt a thread that is performing a search. If the
  15. * search supports being interrupted, it will throw
  16. * InterruptedNamingException. Whether an operation is interruptable
  17. * and when depends on its implementation (as provided by the
  18. * service providers). Different implementations have different ways
  19. * of protecting their resources and objects from being damaged
  20. * due to unexpected interrupts.
  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. *
  29. * @see Context
  30. * @see javax.naming.directory.DirContext
  31. * @see java.lang.Thread#interrupt
  32. * @see java.lang.InterruptedException
  33. * @since 1.3
  34. */
  35. public class InterruptedNamingException extends NamingException {
  36. /**
  37. * Constructs an instance of InterruptedNamingException using an
  38. * explanation of the problem.
  39. * All name resolution-related fields are initialized to null.
  40. * @param explanation A possibly null message explaining the problem.
  41. * @see java.lang.Throwable#getMessage
  42. */
  43. public InterruptedNamingException(String explanation) {
  44. super(explanation);
  45. }
  46. /**
  47. * Constructs an instance of InterruptedNamingException with
  48. * all name resolution fields and explanation initialized to null.
  49. */
  50. public InterruptedNamingException() {
  51. super();
  52. }
  53. /**
  54. * Use serialVersionUID from JNDI 1.1.1 for interoperability
  55. */
  56. private static final long serialVersionUID = 6404516648893194728L;
  57. }