1. /*
  2. * @(#)TRANSACTION_ROLLEDBACK.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>TRANSACTION_ROLLEDBACK</code> exception, which is thrown
  10. * when a transactional operation did not complete
  11. * because the transaction was rolled back. See the OMG Transaction
  12. * Service specification for details.
  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. */
  21. public final class TRANSACTION_ROLLEDBACK extends SystemException {
  22. /**
  23. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with a default minor code
  24. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  25. * and a null description.
  26. */
  27. public TRANSACTION_ROLLEDBACK() {
  28. this("");
  29. }
  30. /**
  31. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
  32. * specified description message,
  33. * a minor code of 0, and a completion state of COMPLETED_NO.
  34. * @param s the String containing a detail message
  35. */
  36. public TRANSACTION_ROLLEDBACK(String s) {
  37. this(s, 0, CompletionStatus.COMPLETED_NO);
  38. }
  39. /**
  40. * Constructs a <code>TRANSACTION_ROLLEDBACK</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 TRANSACTION_ROLLEDBACK(int minor, CompletionStatus completed) {
  46. this("", minor, completed);
  47. }
  48. /**
  49. * Constructs a <code>TRANSACTION_ROLLEDBACK</code> exception with the
  50. * specified description message, minor code, and completion status.
  51. * @param s the String containing a description message
  52. * @param minor the minor code
  53. * @param completed the completion status
  54. */
  55. public TRANSACTION_ROLLEDBACK(String s, int minor, CompletionStatus completed) {
  56. super(s, minor, completed);
  57. }
  58. }