1. /*
  2. * @(#)BAD_INV_ORDER.java 1.24 01/11/29
  3. *
  4. * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
  5. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
  6. */
  7. package org.omg.CORBA;
  8. /**
  9. * The CORBA <code>BAD_INV_ORDER</code> exception, which is thrown
  10. * when methods are called out of order.
  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.18, 09/09/97
  18. * @since JDK1.2
  19. */
  20. public final class BAD_INV_ORDER extends SystemException {
  21. /**
  22. * Constructs a <code>BAD_INV_ORDER</code> exception with a default
  23. * minor code of 0 and a completion state of COMPLETED_NO.
  24. */
  25. public BAD_INV_ORDER() {
  26. this("");
  27. }
  28. /**
  29. * Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
  30. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  31. *
  32. * @param s the String containing a detail message
  33. */
  34. public BAD_INV_ORDER(String s) {
  35. this(s, 0, CompletionStatus.COMPLETED_NO);
  36. }
  37. /**
  38. * Constructs a <code>BAD_INV_ORDER</code> exceptionBAD_INV_ORDER with the specified
  39. * minor code and completion status.
  40. * @param minor the minor code
  41. * @param completed an instance of <code>CompletionStatus</code> indicating
  42. * the completion status
  43. */
  44. public BAD_INV_ORDER(int minor, CompletionStatus completed) {
  45. this("", minor, completed);
  46. }
  47. /**
  48. * Constructs a <code>BAD_INV_ORDER</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 the completion status
  54. */
  55. public BAD_INV_ORDER(String s, int minor, CompletionStatus completed) {
  56. super(s, minor, completed);
  57. }
  58. }