1. /*
  2. * @(#)ACTIVITY_COMPLETED.java 1.2 04/03/15
  3. *
  4. * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The <code>ACTIVITY_COMPLETED</code> system exception may be raised on any
  10. * method for which Activity context is accessed. It indicates that the
  11. * Activity context in which the method call was made has been completed due
  12. * to a timeout of either the Activity itself or a transaction that encompasses
  13. * the Activity, or that the Activity completed in a manner other than that
  14. * originally requested.
  15. *
  16. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  17. * Java IDL exceptions</A>
  18. * @version 1.0, 03/05/2004
  19. * @since J2SE 1.5
  20. */
  21. public final class ACTIVITY_COMPLETED extends SystemException {
  22. /**
  23. * Constructs an <code>ACTIVITY_COMPLETED</code> exception with
  24. * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
  25. */
  26. public ACTIVITY_COMPLETED() {
  27. this("");
  28. }
  29. /**
  30. * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
  31. * specified message.
  32. *
  33. * @param detailMessage string containing a detailed message.
  34. */
  35. public ACTIVITY_COMPLETED(String detailMessage) {
  36. this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
  37. }
  38. /**
  39. * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
  40. * specified minor code and completion status.
  41. *
  42. * @param minorCode minor code.
  43. * @param completionStatus completion status.
  44. */
  45. public ACTIVITY_COMPLETED(int minorCode,
  46. CompletionStatus completionStatus) {
  47. this("", minorCode, completionStatus);
  48. }
  49. /**
  50. * Constructs an <code>ACTIVITY_COMPLETED</code> exception with the
  51. * specified message, minor code, and completion status.
  52. *
  53. * @param detailMessage string containing a detailed message.
  54. * @param minorCode minor code.
  55. * @param completionStatus completion status.
  56. */
  57. public ACTIVITY_COMPLETED(String detailMessage,
  58. int minorCode,
  59. CompletionStatus completionStatus) {
  60. super(detailMessage, minorCode, completionStatus);
  61. }
  62. }