1. /*
  2. * @(#)INV_OBJREF.java 1.34 03/12/19
  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. * This exception indicates that an object reference is internally
  10. * malformed. For example, the repository ID may have incorrect
  11. * syntax or the addressing information may be invalid. This
  12. * exception is raised by ORB::string_to_object if the passed
  13. * string does not decode correctly. An ORB may choose to detect
  14. * calls via nil references (but is not obliged to do detect them).
  15. * <tt>INV_OBJREF</tt> is used to indicate this.<P>
  16. * It contains a minor code, which gives more detailed information about
  17. * what caused the exception, and a completion status. It may also contain
  18. * a string describing the exception.
  19. * <P>
  20. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  21. * Code Meanings</A> to see the minor codes for this exception.
  22. *
  23. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  24. * Java IDL exceptions</A>
  25. * @version 1.17 09/09/97
  26. * @since JDK1.2
  27. */
  28. public final class INV_OBJREF extends SystemException {
  29. /**
  30. * Constructs an <code>INV_OBJREF</code> exception with a default
  31. * minor code of 0 and a completion state of COMPLETED_NO.
  32. */
  33. public INV_OBJREF() {
  34. this("");
  35. }
  36. /**
  37. * Constructs an <code>INV_OBJREF</code> exception with the specified detail
  38. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  39. * @param s the String containing a detail message
  40. */
  41. public INV_OBJREF(String s) {
  42. this(s, 0, CompletionStatus.COMPLETED_NO);
  43. }
  44. /**
  45. * Constructs an <code>INV_OBJREF</code> exception with the specified
  46. * minor code and completion status.
  47. * @param minor the minor code
  48. * @param completed a <code>CompletionStatus</code> instance indicating
  49. * the completion status
  50. */
  51. public INV_OBJREF(int minor, CompletionStatus completed) {
  52. this("", minor, completed);
  53. }
  54. /**
  55. * Constructs an <code>INV_OBJREF</code> exception with the specified detail
  56. * message, minor code, and completion status.
  57. * A detail message is a String that describes this particular exception.
  58. * @param s the String containing a detail message
  59. * @param minor the minor code
  60. * @param completed a <code>CompletionStatus</code> instance indicating
  61. * the completion status
  62. */
  63. public INV_OBJREF(String s, int minor, CompletionStatus completed) {
  64. super(s, minor, completed);
  65. }
  66. }