1. /*
  2. * @(#)INVALID_TRANSACTION.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>INVALID_TRANSACTION</code> exception, which is thrown
  13. * when there is a transaction error.
  14. * It contains a minor code, which gives more detailed information about
  15. * what caused the exception, and a completion status. It may also contain
  16. * a string describing the exception.
  17. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  19. * Java IDL exceptions</A>
  20. * @version 1.5, 09/09/97
  21. * @since JDK1.2
  22. *
  23. */
  24. public final class INVALID_TRANSACTION extends SystemException {
  25. /**
  26. * Constructs an <code>INVALID_TRANSACTION</code> exception with a default minor code
  27. * of 0 and a completion state of COMPLETED_MAYBE.
  28. */
  29. public INVALID_TRANSACTION() {
  30. this("");
  31. }
  32. /**
  33. * Constructs an <code>INVALID_TRANSACTION</code> exception
  34. * with the specified detail message.
  35. * @param s the String containing a detail message
  36. */
  37. public INVALID_TRANSACTION(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs an <code>INVALID_TRANSACTION</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public INVALID_TRANSACTION(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs an <code>INVALID_TRANSACTION</code> exception with the specified detail
  51. * message, minor code, and completion status.
  52. * A detail message is a String that describes this particular exception.
  53. * @param s the String containing a detail message
  54. * @param minor the minor code
  55. * @param completed the completion status
  56. */
  57. public INVALID_TRANSACTION(String s, int minor, CompletionStatus completed) {
  58. super(s, minor, completed);
  59. }
  60. }