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