1. /*
  2. * @(#)OBJ_ADAPTER.java 1.22 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>OBJ_ADAPTER</code> exception, which is thrown
  10. * by the object adapter on the server to indicate some error.
  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 OBJ_ADAPTER extends SystemException {
  24. /**
  25. * Constructs an <code>OBJ_ADAPTER</code> exception with a default minor code
  26. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  27. * and a null description.
  28. */
  29. public OBJ_ADAPTER() {
  30. this("");
  31. }
  32. /**
  33. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description,
  34. * a minor code of 0, and a completion state of COMPLETED_NO.
  35. * @param s the String containing a description message
  36. */
  37. public OBJ_ADAPTER(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public OBJ_ADAPTER(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs an <code>OBJ_ADAPTER</code> exception with the specified description
  51. * message, minor code, and completion status.
  52. * @param s the String containing a description message
  53. * @param minor the minor code
  54. * @param completed the completion status
  55. */
  56. public OBJ_ADAPTER(String s, int minor, CompletionStatus completed) {
  57. super(s, minor, completed);
  58. }
  59. }