1. /*
  2. * @(#)TRANSACTION_REQUIRED.java 1.14 00/02/02
  3. *
  4. * Copyright 1997-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 org.omg.CORBA;
  11. /**
  12. * The CORBA <code>TRANSACTION_REQUIRED</code> exception, which is thrown
  13. * by the ORB on the client or server during the
  14. * processing of a request that
  15. * is required to be enclosed in a transaction.
  16. * It contains a minor code, which gives information about
  17. * what caused the exception, and a completion status. It may also contain
  18. * a string describing the exception.
  19. * The OMG Transaction Service specfication has details.
  20. *
  21. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  22. * Java IDL exceptions</A>
  23. * @version 1.5 09/09/97
  24. */
  25. public final class TRANSACTION_REQUIRED extends SystemException {
  26. /**
  27. * Constructs a <code>TRANSACTION_REQUIRED</code> exception with a default minor code
  28. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  29. * and a null description.
  30. */
  31. public TRANSACTION_REQUIRED() {
  32. this("");
  33. }
  34. /**
  35. * Constructs a <code>TRANSACTION_REQUIRED</code> exception with the specified
  36. * description message, a minor code of 0, and a completion state of COMPLETED_NO.
  37. * @param s the String containing a detail message
  38. */
  39. public TRANSACTION_REQUIRED(String s) {
  40. this(s, 0, CompletionStatus.COMPLETED_NO);
  41. }
  42. /**
  43. * Constructs a <code>TRANSACTION_REQUIRED</code> exception with the specified
  44. * minor code and completion status.
  45. * @param minor the minor code
  46. * @param completed the completion status
  47. */
  48. public TRANSACTION_REQUIRED(int minor, CompletionStatus completed) {
  49. this("", minor, completed);
  50. }
  51. /**
  52. * Constructs a <code>TRANSACTION_REQUIRED</code> exception with the specified description
  53. * message, minor code, and completion status.
  54. * @param s the String containing a description message
  55. * @param minor the minor code
  56. * @param completed the completion status
  57. */
  58. public TRANSACTION_REQUIRED(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }