1. /*
  2. * @(#)WrongTransaction.java 1.19 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>WrongTransaction</code> user-defined exception.
  13. * This exception is thrown only by the methods
  14. * <code>Request.get_response</code>
  15. * and <code>ORB.get_next_response</code> when they are invoked
  16. * from a transaction scope that is different from the one in
  17. * which the client originally sent the request.
  18. * See the OMG Transaction Service Specification for details.
  19. *
  20. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  21. * Java IDL exceptions</A>
  22. */
  23. public class WrongTransaction extends UserException {
  24. /**
  25. * Constructs a WrongTransaction object with an empty detail message.
  26. */
  27. public WrongTransaction() {
  28. super();
  29. }
  30. /**
  31. * Constructs a WrongTransaction object with the given detail message.
  32. * @param reason The detail message explaining what caused this exception to be thrown.
  33. */
  34. public WrongTransaction(String reason) {
  35. super(reason);
  36. }
  37. }