1. /*
  2. * @(#)UNKNOWN.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>UNKNOWN</code> exception, which is thrown when there is
  10. * an error whose cause is unknown to the ORB.
  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.10 07 Nov 1996
  21. */
  22. public final class UNKNOWN extends SystemException {
  23. /**
  24. * Constructs an <code>UNKNOWN</code> exception with a default minor code
  25. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  26. * and a null description.
  27. */
  28. public UNKNOWN() {
  29. this("");
  30. }
  31. /**
  32. * Constructs an <code>UNKNOWN</code> exception with the specified description message,
  33. * a minor code of 0, and a completion state of COMPLETED_NO.
  34. * @param s the String containing a detail message
  35. */
  36. public UNKNOWN(String s) {
  37. this(s, 0, CompletionStatus.COMPLETED_NO);
  38. }
  39. /**
  40. * Constructs an <code>UNKNOWN</code> exception with the specified
  41. * minor code and completion status.
  42. * @param minor the minor code
  43. * @param completed the completion status
  44. */
  45. public UNKNOWN(int minor, CompletionStatus completed) {
  46. this("", minor, completed);
  47. }
  48. /**
  49. * Constructs an <code>UNKNOWN</code> exception with the specified description
  50. * message, minor code, and completion status.
  51. * @param s the String containing a description message
  52. * @param minor the minor code
  53. * @param completed the completion status
  54. */
  55. public UNKNOWN(String s, int minor, CompletionStatus completed) {
  56. super(s, minor, completed);
  57. }
  58. }