1. /*
  2. * @(#)TRANSACTION_UNAVAILABLE.java 1.2 04/07/26
  3. *
  4. * Copyright 2004 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_UNAVAILABLE</code> exception is thrown
  10. * by the ORB when it cannot process a transaction service context because
  11. * its connection to the Transaction Service has been abnormally terminated.
  12. *
  13. * It contains a minor code, which gives information about
  14. * what caused the exception, and a completion status. It may also contain
  15. * a string describing the exception.
  16. * The OMG CORBA core 2.4 specification has details.
  17. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  19. * Java IDL exceptions</A>
  20. * @version 1.0 10/22/2000
  21. */
  22. public final class TRANSACTION_UNAVAILABLE extends SystemException {
  23. /**
  24. * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception
  25. * with a default minor code of 0, a completion state of
  26. * CompletionStatus.COMPLETED_NO, and a null description.
  27. */
  28. public TRANSACTION_UNAVAILABLE() {
  29. this("");
  30. }
  31. /**
  32. * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the
  33. * specifieddescription message, a minor code of 0, and a completion state
  34. * of COMPLETED_NO.
  35. * @param s the String containing a detail message
  36. */
  37. public TRANSACTION_UNAVAILABLE(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the
  42. * specified minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public TRANSACTION_UNAVAILABLE(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>TRANSACTION_UNAVAILABLE</code> exception with the
  51. * specified description message, minor code, and completion status.
  52. * @param s the String containing a description message
  53. * @param minor the minor code
  54. * @param completed the completion status
  55. */
  56. public TRANSACTION_UNAVAILABLE(String s, int minor,
  57. CompletionStatus completed) {
  58. super(s, minor, completed);
  59. }
  60. }