1. /*
  2. * @(#)BAD_INV_ORDER.java 1.27 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_INV_ORDER</code> exception, which is thrown
  13. * when methods are called out of order.
  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.18, 09/09/97
  21. * @since JDK1.2
  22. */
  23. public final class BAD_INV_ORDER extends SystemException {
  24. /**
  25. * Constructs a <code>BAD_INV_ORDER</code> exception with a default
  26. * minor code of 0 and a completion state of COMPLETED_NO.
  27. */
  28. public BAD_INV_ORDER() {
  29. this("");
  30. }
  31. /**
  32. * Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
  33. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  34. *
  35. * @param s the String containing a detail message
  36. */
  37. public BAD_INV_ORDER(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs a <code>BAD_INV_ORDER</code> exceptionBAD_INV_ORDER with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed an instance of <code>CompletionStatus</code> indicating
  45. * the completion status
  46. */
  47. public BAD_INV_ORDER(int minor, CompletionStatus completed) {
  48. this("", minor, completed);
  49. }
  50. /**
  51. * Constructs a <code>BAD_INV_ORDER</code> exception 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 the completion status
  57. */
  58. public BAD_INV_ORDER(String s, int minor, CompletionStatus completed) {
  59. super(s, minor, completed);
  60. }
  61. }