1. /*
  2. * @(#)REBIND.java 1.2 04/03/15
  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. * <code>REBIND</code> is raised when the current effective RebindPolicy,
  10. * has a value of NO_REBIND or NO_RECONNECT and an invocation on a bound
  11. * object reference results in a LocateReply message with status
  12. * OBJECT_FORWARD or a Reply message with status LOCATION_FORWARD.
  13. * This exception is also raised if the current effective RebindPolicy has
  14. * a value of NO_RECONNECT and a connection must be reopened.
  15. *
  16. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  17. * Java IDL exceptions</A>
  18. * @version 1.0, 03/05/2004
  19. * @since J2SE 1.5
  20. */
  21. public final class REBIND extends SystemException {
  22. /**
  23. * Constructs an <code>REBIND</code> exception with
  24. * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
  25. */
  26. public REBIND() {
  27. this("");
  28. }
  29. /**
  30. * Constructs an <code>REBIND</code> exception with the
  31. * specified message.
  32. *
  33. * @param detailMessage string containing a detailed message.
  34. */
  35. public REBIND(String detailMessage) {
  36. this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
  37. }
  38. /**
  39. * Constructs an <code>REBIND</code> exception with the
  40. * specified minor code and completion status.
  41. *
  42. * @param minorCode minor code.
  43. * @param completionStatus completion status.
  44. */
  45. public REBIND(int minorCode,
  46. CompletionStatus completionStatus) {
  47. this("", minorCode, completionStatus);
  48. }
  49. /**
  50. * Constructs an <code>REBIND</code> exception with the
  51. * specified message, minor code, and completion status.
  52. *
  53. * @param detailMessage string containing a detailed message.
  54. * @param minorCode minor code.
  55. * @param completionStatus completion status.
  56. */
  57. public REBIND(String detailMessage,
  58. int minorCode,
  59. CompletionStatus completionStatus) {
  60. super(detailMessage, minorCode, completionStatus);
  61. }
  62. }