1. /*
  2. * @(#)UNKNOWN.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 is raised if an operation implementation
  10. * throws a non-CORBA exception (such as an exception
  11. * specific to the implementation's programming language),
  12. * or if an operation raises a user exception that does not
  13. * appear in the operation's raises expression. UNKNOWN is
  14. * also raised if the server returns a system exception that
  15. * is unknown to the client. (This can happen if the server
  16. * uses a later version of CORBA than the client and new system
  17. * exceptions have been added to the later version.)<P>
  18. * It contains a minor code, which gives more detailed information about
  19. * what caused the exception, and a completion status. It may also contain
  20. * a string describing the exception.
  21. * <P>
  22. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  23. * Code Meanings</A> to see the minor codes for this exception.
  24. *
  25. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  26. * Java IDL exceptions</A>
  27. * @version 1.10 07 Nov 1996
  28. */
  29. public final class UNKNOWN extends SystemException {
  30. /**
  31. * Constructs an <code>UNKNOWN</code> exception with a default minor code
  32. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  33. * and a null description.
  34. */
  35. public UNKNOWN() {
  36. this("");
  37. }
  38. /**
  39. * Constructs an <code>UNKNOWN</code> exception with the specified description message,
  40. * a minor code of 0, and a completion state of COMPLETED_NO.
  41. * @param s the String containing a detail message
  42. */
  43. public UNKNOWN(String s) {
  44. this(s, 0, CompletionStatus.COMPLETED_NO);
  45. }
  46. /**
  47. * Constructs an <code>UNKNOWN</code> exception with the specified
  48. * minor code and completion status.
  49. * @param minor the minor code
  50. * @param completed the completion status
  51. */
  52. public UNKNOWN(int minor, CompletionStatus completed) {
  53. this("", minor, completed);
  54. }
  55. /**
  56. * Constructs an <code>UNKNOWN</code> exception with the specified description
  57. * message, minor code, and completion status.
  58. * @param s the String containing a description message
  59. * @param minor the minor code
  60. * @param completed the completion status
  61. */
  62. public UNKNOWN(String s, int minor, CompletionStatus completed) {
  63. super(s, minor, completed);
  64. }
  65. }