1. /*
  2. * @(#)TRANSACTION_ROLLEDBACK.java 1.19 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 when the transaction associated with the request has
  10. * already been rolled back or marked to roll back. Thus, the requested
  11. * operation either could not be performed or was not performed because
  12. * further computation on behalf of the transaction would be fruitless.<P>
  13. * See the OMG Transaction
  14. * Service specification for details.
  15. * It contains a minor code, which gives more detailed information about
  16. * what caused the exception, and a completion status. It may also contain
  17. * a string describing the exception.
  18. *
  19. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  20. * Java IDL exceptions</A>
  21. * @version 1.5 09/09/97
  22. */
  23. public final class TRANSACTION_ROLLEDBACK extends SystemException {
  24. /**
  25. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with a default minor code
  26. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  27. * and a null description.
  28. */
  29. public TRANSACTION_ROLLEDBACK() {
  30. this("");
  31. }
  32. /**
  33. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
  34. * specified description message,
  35. * a minor code of 0, and a completion state of COMPLETED_NO.
  36. * @param s the String containing a detail message
  37. */
  38. public TRANSACTION_ROLLEDBACK(String s) {
  39. this(s, 0, CompletionStatus.COMPLETED_NO);
  40. }
  41. /**
  42. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the specified
  43. * minor code and completion status.
  44. * @param minor the minor code
  45. * @param completed the completion status
  46. */
  47. public TRANSACTION_ROLLEDBACK(int minor, CompletionStatus completed) {
  48. this("", minor, completed);
  49. }
  50. /**
  51. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
  52. * specified description message, minor code, and completion status.
  53. * @param s the String containing a description message
  54. * @param minor the minor code
  55. * @param completed the completion status
  56. */
  57. public TRANSACTION_ROLLEDBACK(String s, int minor, CompletionStatus completed) {
  58. super(s, minor, completed);
  59. }
  60. }