1. /*
  2. * @(#)INVALID_ACTIVITY.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>INVALID_ACTIVITY</code> system exception may be raised on the
  10. * Activity or Transaction services' resume methods if a transaction or
  11. * Activity is resumed in a context different to that from which it was
  12. * suspended. It is also raised when an attempted invocation is made that
  13. * is incompatible with the Activity's current state.
  14. *
  15. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  16. * Java IDL exceptions</A>
  17. * @version 1.0, 03/05/2004
  18. * @since J2SE 1.5
  19. */
  20. public final class INVALID_ACTIVITY extends SystemException {
  21. /**
  22. * Constructs an <code>INVALID_ACTIVITY</code> exception with
  23. * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
  24. */
  25. public INVALID_ACTIVITY() {
  26. this("");
  27. }
  28. /**
  29. * Constructs an <code>INVALID_ACTIVITY</code> exception with the
  30. * specified message.
  31. *
  32. * @param detailMessage string containing a detailed message.
  33. */
  34. public INVALID_ACTIVITY(String detailMessage) {
  35. this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
  36. }
  37. /**
  38. * Constructs an <code>INVALID_ACTIVITY</code> exception with the
  39. * specified minor code and completion status.
  40. *
  41. * @param minorCode minor code.
  42. * @param completionStatus completion status.
  43. */
  44. public INVALID_ACTIVITY(int minorCode,
  45. CompletionStatus completionStatus) {
  46. this("", minorCode, completionStatus);
  47. }
  48. /**
  49. * Constructs an <code>INVALID_ACTIVITY</code> exception with the
  50. * specified message, minor code, and completion status.
  51. *
  52. * @param detailMessage string containing a detailed message.
  53. * @param minorCode minor code.
  54. * @param completionStatus completion status.
  55. */
  56. public INVALID_ACTIVITY(String detailMessage,
  57. int minorCode,
  58. CompletionStatus completionStatus) {
  59. super(detailMessage, minorCode, completionStatus);
  60. }
  61. }