1. /*
  2. * @(#)INVALID_TRANSACTION.java 1.21 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * Exception thrown
  10. * when the request carried an invalid transaction context.
  11. * For example, this exception could be raised if an error
  12. * occurred when trying to register a resource.<P>
  13. * It contains a minor code, which gives more detailed information about
  14. * what caused the exception, and a completion status. It may also contain
  15. * a string describing the exception.
  16. *
  17. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  18. * Java IDL exceptions</A>
  19. * @version 1.5, 09/09/97
  20. * @since JDK1.2
  21. *
  22. */
  23. public final class INVALID_TRANSACTION extends SystemException {
  24. /**
  25. * Constructs an <code>INVALID_TRANSACTION</code> exception with a default minor code
  26. * of 0 and a completion state of COMPLETED_NO.
  27. */
  28. public INVALID_TRANSACTION() {
  29. this("");
  30. }
  31. /**
  32. * Constructs an <code>INVALID_TRANSACTION</code> exception
  33. * with the specified detail message.
  34. * @param s the String containing a detail message
  35. */
  36. public INVALID_TRANSACTION(String s) {
  37. this(s, 0, CompletionStatus.COMPLETED_NO);
  38. }
  39. /**
  40. * Constructs an <code>INVALID_TRANSACTION</code> exception with the specified
  41. * minor code and completion status.
  42. * @param minor the minor code
  43. * @param completed the completion status
  44. */
  45. public INVALID_TRANSACTION(int minor, CompletionStatus completed) {
  46. this("", minor, completed);
  47. }
  48. /**
  49. * Constructs an <code>INVALID_TRANSACTION</code> exception with the specified detail
  50. * message, minor code, and completion status.
  51. * A detail message is a String that describes this particular exception.
  52. * @param s the String containing a detail message
  53. * @param minor the minor code
  54. * @param completed the completion status
  55. */
  56. public INVALID_TRANSACTION(String s, int minor, CompletionStatus completed) {
  57. super(s, minor, completed);
  58. }
  59. }