1. /*
  2. * @(#)TRANSACTION_MODE.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_MODE</code> exception is thrown
  10. * by the client ORB if it detects a mismatch between the
  11. * InvocationPolicy in the IOR and the chosen invocation path
  12. * (i.e, direct or routed invocation).
  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_MODE extends SystemException {
  23. /**
  24. * Constructs a <code>TRANSACTION_MODE</code> exception with a default
  25. * minor code of 0, a completion state of CompletionStatus.COMPLETED_NO,
  26. * and a null description.
  27. */
  28. public TRANSACTION_MODE() {
  29. this("");
  30. }
  31. /**
  32. * Constructs a <code>TRANSACTION_MODE</code> exception with the specified
  33. * description message, a minor code of 0, and a completion state of
  34. * COMPLETED_NO.
  35. * @param s the String containing a detail message
  36. */
  37. public TRANSACTION_MODE(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs a <code>TRANSACTION_MODE</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public TRANSACTION_MODE(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>TRANSACTION_MODE</code> exception with the specified
  51. * 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_MODE(String s, int minor, CompletionStatus completed) {
  57. super(s, minor, completed);
  58. }
  59. }