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