1. /*
  2. * @(#)OBJ_ADAPTER.java 1.30 03/01/23
  3. *
  4. * Copyright 2003 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 typically indicates an administrative mismatch, for
  10. * example, a server may have made an attempt to register itself with
  11. * an implementation repository under a name that is already in use,
  12. * or is unknown to the repository. <P>
  13. * It contains a minor code, which gives more detailed information about
  14. * what caused the exception, and a completion status. It may also contain
  15. * a string describing the exception.
  16. * <P>
  17. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  18. * Code Meanings</A> to see the minor codes for this exception.
  19. *
  20. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  21. * Java IDL exceptions</A>
  22. * @version 1.17, 09/09/97
  23. * @since JDK1.2
  24. */
  25. public final class OBJ_ADAPTER extends SystemException {
  26. /**
  27. * Constructs an <code>OBJ_ADAPTER</code> exception with a default minor code
  28. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  29. * and a null description.
  30. */
  31. public OBJ_ADAPTER() {
  32. this("");
  33. }
  34. /**
  35. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description,
  36. * a minor code of 0, and a completion state of COMPLETED_NO.
  37. * @param s the String containing a description message
  38. */
  39. public OBJ_ADAPTER(String s) {
  40. this(s, 0, CompletionStatus.COMPLETED_NO);
  41. }
  42. /**
  43. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified
  44. * minor code and completion status.
  45. * @param minor the minor code
  46. * @param completed the completion status
  47. */
  48. public OBJ_ADAPTER(int minor, CompletionStatus completed) {
  49. this("", minor, completed);
  50. }
  51. /**
  52. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description
  53. * message, minor code, and completion status.
  54. * @param s the String containing a description message
  55. * @param minor the minor code
  56. * @param completed the completion status
  57. */
  58. public OBJ_ADAPTER(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }