1. /*
  2. * @(#)INV_FLAG.java 1.31 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
  10. * when an invalid flag was passed to an operation (for example, when
  11. * creating a DII request).<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. *
  16. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  17. * Java IDL exceptions</A>
  18. * @version 1.16, 09/09/97
  19. * @since JDK1.2
  20. */
  21. public final class INV_FLAG extends SystemException {
  22. /**
  23. * Constructs an <code>INV_FLAG</code> exception with a default
  24. * minor code of 0 and a completion state of COMPLETED_NO.
  25. */
  26. public INV_FLAG() {
  27. this("");
  28. }
  29. /**
  30. * Constructs an <code>INV_FLAG</code> exception with the specified detail
  31. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  32. * @param s the String containing a detail message
  33. */
  34. public INV_FLAG(String s) {
  35. this(s, 0, CompletionStatus.COMPLETED_NO);
  36. }
  37. /**
  38. * Constructs an <code>INV_FLAG</code> exception with the specified
  39. * minor code and completion status.
  40. * @param minor the minor code
  41. * @param completed an instance of <code>CompletionStatus</code>
  42. * indicating the completion status
  43. */
  44. public INV_FLAG(int minor, CompletionStatus completed) {
  45. this("", minor, completed);
  46. }
  47. /**
  48. * Constructs an <code>INV_FLAG</code> exception with the specified detail
  49. * message, minor code, and completion status.
  50. * A detail message is a String that describes this particular exception.
  51. * @param s the String containing a detail message
  52. * @param minor the minor code
  53. * @param completed an instance of <code>CompletionStatus</code>
  54. * indicating the completion status
  55. */
  56. public INV_FLAG(String s, int minor, CompletionStatus completed) {
  57. super(s, minor, completed);
  58. }
  59. }