1. /*
  2. * @(#)INV_POLICY.java 1.12 03/01/23
  3. *
  4. * Copyright 2003 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * Standard exception thrown
  10. * when an invocation cannot be made because of an incompatibility between
  11. * <tt>Policy</tt> overrides that apply to the particular invocation.
  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.5 09/09/97
  19. */
  20. public final class INV_POLICY extends SystemException {
  21. /**
  22. * Constructs a <code>INV_POLICY</code> exception with a default minor code
  23. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  24. * and a null description.
  25. */
  26. public INV_POLICY() {
  27. this("");
  28. }
  29. /**
  30. * Constructs a <code>INV_POLICY</code> exception with the
  31. * specified description message,
  32. * a minor code of 0, and a completion state of COMPLETED_NO.
  33. * @param s the String containing a detail message
  34. */
  35. public INV_POLICY(String s) {
  36. this(s, 0, CompletionStatus.COMPLETED_NO);
  37. }
  38. /**
  39. * Constructs a <code>INV_POLICY</code> exception with the specified
  40. * minor code and completion status.
  41. * @param minor the minor code
  42. * @param completed the completion status
  43. */
  44. public INV_POLICY(int minor, CompletionStatus completed) {
  45. this("", minor, completed);
  46. }
  47. /**
  48. * Constructs a <code>INV_POLICY</code> exception with the
  49. * specified description message, minor code, and completion status.
  50. * @param s the String containing a description message
  51. * @param minor the minor code
  52. * @param completed the completion status
  53. */
  54. public INV_POLICY(String s, int minor, CompletionStatus completed) {
  55. super(s, minor, completed);
  56. }
  57. }