1. /*
  2. * @(#)BAD_CONTEXT.java 1.26 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>BAD_CONTEXT</code> exception, which is thrown when there is
  13. * an error processing a context object.
  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. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  19. * Java IDL exceptions</A>
  20. * @version 1.17, 09/09/97
  21. * @since JDK1.2
  22. */
  23. public final class BAD_CONTEXT extends SystemException {
  24. /**
  25. * Constructs a <code>BAD_CONTEXT</code> exception
  26. * with a default minor code
  27. * of 0 and a completion state of COMPLETED_NO.
  28. */
  29. public BAD_CONTEXT() {
  30. this("");
  31. }
  32. /**
  33. * Constructs a <code>BAD_CONTEXT</code> exception
  34. * with the specified detail message, a minor code
  35. * of 0 and a completion state of COMPLETED_NO.
  36. * @param s a <code>String</code> object containing a detail message
  37. */
  38. public BAD_CONTEXT(String s) {
  39. this(s, 0, CompletionStatus.COMPLETED_NO);
  40. }
  41. /**
  42. * Constructs a <code>BAD_CONTEXT</code> exception
  43. * with the specified
  44. * minor code and completion status.
  45. * @param minor the minor code
  46. * @param completed an instance of <code>CompletionStatus</code> indicating
  47. * the completion status
  48. */
  49. public BAD_CONTEXT(int minor, CompletionStatus completed) {
  50. this("", minor, completed);
  51. }
  52. /**
  53. * Constructs a <code>BAD_CONTEXT</code> exception
  54. * 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> indicating
  60. * the completion status
  61. */
  62. public BAD_CONTEXT(String s, int minor, CompletionStatus completed) {
  63. super(s, minor, completed);
  64. }
  65. }