1. /*
  2. * @(#)BAD_CONTEXT.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. * Exception thrown when an operation is invoked by a client but the passed
  10. * context does not contain the context values required by the operation.<P>
  11. * It contains a minor code, which gives more detailed information about
  12. * what caused the exception, and a completion status. It may also contain
  13. * a string describing the exception.
  14. *
  15. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  16. * Java IDL exceptions</A>
  17. * @version 1.17, 09/09/97
  18. * @since JDK1.2
  19. */
  20. public final class BAD_CONTEXT extends SystemException {
  21. /**
  22. * Constructs a <code>BAD_CONTEXT</code> exception
  23. * with a default minor code
  24. * of 0 and a completion state of COMPLETED_NO.
  25. */
  26. public BAD_CONTEXT() {
  27. this("");
  28. }
  29. /**
  30. * Constructs a <code>BAD_CONTEXT</code> exception
  31. * with the specified detail message, a minor code
  32. * of 0 and a completion state of COMPLETED_NO.
  33. * @param s a <code>String</code> object containing a detail message
  34. */
  35. public BAD_CONTEXT(String s) {
  36. this(s, 0, CompletionStatus.COMPLETED_NO);
  37. }
  38. /**
  39. * Constructs a <code>BAD_CONTEXT</code> exception
  40. * with the specified
  41. * minor code and completion status.
  42. * @param minor the minor code
  43. * @param completed an instance of <code>CompletionStatus</code> indicating
  44. * the completion status
  45. */
  46. public BAD_CONTEXT(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>BAD_CONTEXT</code> exception
  51. * with the specified detail
  52. * message, minor code, and completion status.
  53. * A detail message is a String that describes this particular exception.
  54. * @param s the String containing a detail message
  55. * @param minor the minor code
  56. * @param completed an instance of <code>CompletionStatus</code> indicating
  57. * the completion status
  58. */
  59. public BAD_CONTEXT(String s, int minor, CompletionStatus completed) {
  60. super(s, minor, completed);
  61. }
  62. }