1. /*
  2. * @(#)INTERNAL.java 1.33 03/12/19
  3. *
  4. * Copyright 2004 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 indicates an internal failure in an ORB, for
  10. * example, if an ORB has detected corruption of its internal
  11. * data structures.<P>
  12. * It contains a minor code, which gives more detailed information about
  13. * what caused the exception, and a completion status. It may also contain
  14. * a string describing the exception.
  15. * <P>
  16. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning
  17. * of minor codes</A> to see the minor codes for this exception.
  18. *
  19. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  20. * Java IDL exceptions</A>
  21. * @version 1.16, 09/09/97
  22. * @since JDK1.2
  23. */
  24. public final class INTERNAL extends SystemException {
  25. /**
  26. * Constructs an <code>INTERNAL</code> exception with a default
  27. * minor code of 0 and a completion state of COMPLETED_NO.
  28. */
  29. public INTERNAL() {
  30. this("");
  31. }
  32. /**
  33. * Constructs an <code>INTERNAL</code> exception with the specified detail
  34. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  35. * @param s the String containing a detail message
  36. */
  37. public INTERNAL(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs an <code>INTERNAL</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed an instance of <code>CompletionStatus</code>
  45. * that indicates the completion status of the method
  46. * that threw this exception
  47. */
  48. public INTERNAL(int minor, CompletionStatus completed) {
  49. this("", minor, completed);
  50. }
  51. /**
  52. * Constructs an <code>INTERNAL</code> exception with the specified detail
  53. * message, minor code, and completion status.
  54. * A detail message is a String that describes this particular exception.
  55. * @param s the String containing a detail message
  56. * @param minor the minor code
  57. * @param completed an instance of <code>CompletionStatus</code>
  58. * that indicates the completion status of the method
  59. * that threw this exception
  60. */
  61. public INTERNAL(String s, int minor, CompletionStatus completed) {
  62. super(s, minor, completed);
  63. }
  64. }