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