1. /*
  2. * @(#)INTERNAL.java 1.25 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>INTERNAL</code> exception, which is thrown
  13. * when there is an ORB internal error.
  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">meaning
  19. * of minor codes</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.16, 09/09/97
  24. * @since JDK1.2
  25. */
  26. public final class INTERNAL extends SystemException {
  27. /**
  28. * Constructs an <code>INTERNAL</code> exception with a default
  29. * minor code of 0 and a completion state of COMPLETED_MAYBE.
  30. */
  31. public INTERNAL() {
  32. this("");
  33. }
  34. /**
  35. * Constructs an <code>INTERNAL</code> exception with the specified detail
  36. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  37. * @param s the String containing a detail message
  38. */
  39. public INTERNAL(String s) {
  40. this(s, 0, CompletionStatus.COMPLETED_NO);
  41. }
  42. /**
  43. * Constructs an <code>INTERNAL</code> exception with the specified
  44. * minor code and completion status.
  45. * @param minor the minor code
  46. * @param completed an instance of <code>CompletionStatus</code>
  47. * that indicates the completion status of the method
  48. * that threw this exception
  49. */
  50. public INTERNAL(int minor, CompletionStatus completed) {
  51. this("", minor, completed);
  52. }
  53. /**
  54. * Constructs an <code>INTERNAL</code> exception with the specified detail
  55. * message, minor code, and completion status.
  56. * A detail message is a String that describes this particular exception.
  57. * @param s the String containing a detail message
  58. * @param minor the minor code
  59. * @param completed an instance of <code>CompletionStatus</code>
  60. * that indicates the completion status of the method
  61. * that threw this exception
  62. */
  63. public INTERNAL(String s, int minor, CompletionStatus completed) {
  64. super(s, minor, completed);
  65. }
  66. }