1. /*
  2. * @(#)INV_OBJREF.java 1.23 01/11/29
  3. *
  4. * Copyright 2002 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>INV_OBJREF</code> exception, which is thrown
  10. * when an invalid object reference is specified.
  11. * It contains a minor code, which gives more detailed information about
  12. * what caused the exception, and a completion status. It may also contain
  13. * a string describing the exception.
  14. * <P>
  15. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  16. * Code Meanings</A> to see the minor codes for this exception.
  17. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  19. * Java IDL exceptions</A>
  20. * @version 1.17 09/09/97
  21. * @since JDK1.2
  22. */
  23. public final class INV_OBJREF extends SystemException {
  24. /**
  25. * Constructs an <code>INV_OBJREF</code> exception with a default
  26. * minor code of 0 and a completion state of COMPLETED_MAYBE.
  27. */
  28. public INV_OBJREF() {
  29. this("");
  30. }
  31. /**
  32. * Constructs an <code>INV_OBJREF</code> exception with the specified detail
  33. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  34. * @param s the String containing a detail message
  35. */
  36. public INV_OBJREF(String s) {
  37. this(s, 0, CompletionStatus.COMPLETED_NO);
  38. }
  39. /**
  40. * Constructs an <code>INV_OBJREF</code> exception with the specified
  41. * minor code and completion status.
  42. * @param minor the minor code
  43. * @param completed a <code>CompletionStatus</code> instance indicating
  44. * the completion status
  45. */
  46. public INV_OBJREF(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs an <code>INV_OBJREF</code> exception with the specified detail
  51. * message, minor code, and completion status.
  52. * A detail message is a String that describes this particular exception.
  53. * @param s the String containing a detail message
  54. * @param minor the minor code
  55. * @param completed a <code>CompletionStatus</code> instance indicating
  56. * the completion status
  57. */
  58. public INV_OBJREF(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }