1. /*
  2. * @(#)ACTIVITY_REQUIRED.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_REQUIRED</code> system exception may be raised on any
  10. * method for which an Activity context is required. It indicates that an
  11. * Activity context was necessary to perform the invoked operation, but one
  12. * was not found associated with the calling thread.
  13. *
  14. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  15. * Java IDL exceptions</A>
  16. * @version 1.0, 03/05/2004
  17. * @since J2SE 1.5
  18. */
  19. public final class ACTIVITY_REQUIRED extends SystemException {
  20. /**
  21. * Constructs an <code>ACTIVITY_REQUIRED</code> exception with
  22. * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
  23. */
  24. public ACTIVITY_REQUIRED() {
  25. this("");
  26. }
  27. /**
  28. * Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
  29. * specified message.
  30. *
  31. * @param detailMessage string containing a detailed message.
  32. */
  33. public ACTIVITY_REQUIRED(String detailMessage) {
  34. this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
  35. }
  36. /**
  37. * Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
  38. * specified minor code and completion status.
  39. *
  40. * @param minorCode minor code.
  41. * @param completionStatus completion status.
  42. */
  43. public ACTIVITY_REQUIRED(int minorCode,
  44. CompletionStatus completionStatus) {
  45. this("", minorCode, completionStatus);
  46. }
  47. /**
  48. * Constructs an <code>ACTIVITY_REQUIRED</code> exception with the
  49. * specified message, minor code, and completion status.
  50. *
  51. * @param detailMessage string containing a detailed message.
  52. * @param minorCode minor code.
  53. * @param completionStatus completion status.
  54. */
  55. public ACTIVITY_REQUIRED(String detailMessage,
  56. int minorCode,
  57. CompletionStatus completionStatus) {
  58. super(detailMessage, minorCode, completionStatus);
  59. }
  60. }