1. /*
  2. * @(#)UNKNOWN.java 1.24 00/02/02
  3. *
  4. * Copyright 1995-2000 Sun Microsystems, Inc. All Rights Reserved.
  5. *
  6. * This software is the proprietary information of Sun Microsystems, Inc.
  7. * Use is subject to license terms.
  8. *
  9. */
  10. package org.omg.CORBA;
  11. /**
  12. * The CORBA <code>UNKNOWN</code> exception, which is thrown when there is
  13. * an error whose cause is unknown to the ORB.
  14. * It contains a minor code, which gives more detailed information about
  15. * what caused the exception, and a completion status. It may also contain
  16. * a string describing the exception.
  17. * <P>
  18. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  19. * Code Meanings</A> to see the minor codes for this exception.
  20. *
  21. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  22. * Java IDL exceptions</A>
  23. * @version 1.10 07 Nov 1996
  24. */
  25. public final class UNKNOWN extends SystemException {
  26. /**
  27. * Constructs an <code>UNKNOWN</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 UNKNOWN() {
  32. this("");
  33. }
  34. /**
  35. * Constructs an <code>UNKNOWN</code> exception with the specified description message,
  36. * a minor code of 0, and a completion state of COMPLETED_NO.
  37. * @param s the String containing a detail message
  38. */
  39. public UNKNOWN(String s) {
  40. this(s, 0, CompletionStatus.COMPLETED_NO);
  41. }
  42. /**
  43. * Constructs an <code>UNKNOWN</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 UNKNOWN(int minor, CompletionStatus completed) {
  49. this("", minor, completed);
  50. }
  51. /**
  52. * Constructs an <code>UNKNOWN</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 UNKNOWN(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }