1. /*
  2. * @(#)BAD_INV_ORDER.java 1.32 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. * This exception indicates that the caller has invoked operations in
  10. * the wrong order. For example, it can be raised by an ORB if an
  11. * application makes an ORB-related call without having correctly
  12. * initialized the ORB first.<P>
  13. * It contains a minor code, which gives more detailed information about
  14. * what caused the exception, and a completion status. It may also contain
  15. * a string describing the exception.
  16. *
  17. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  18. * Java IDL exceptions</A>
  19. * @version 1.18, 09/09/97
  20. * @since JDK1.2
  21. */
  22. public final class BAD_INV_ORDER extends SystemException {
  23. /**
  24. * Constructs a <code>BAD_INV_ORDER</code> exception with a default
  25. * minor code of 0 and a completion state of COMPLETED_NO.
  26. */
  27. public BAD_INV_ORDER() {
  28. this("");
  29. }
  30. /**
  31. * Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
  32. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  33. *
  34. * @param s the String containing a detail message
  35. */
  36. public BAD_INV_ORDER(String s) {
  37. this(s, 0, CompletionStatus.COMPLETED_NO);
  38. }
  39. /**
  40. * Constructs a <code>BAD_INV_ORDER</code> exceptionBAD_INV_ORDER 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_INV_ORDER(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>BAD_INV_ORDER</code> exception with the specified detail
  51. * message, minor code, and completion status.
  52. * A detail message is a String that describes this particular exception.
  53. * @param s the String containing a detail message
  54. * @param minor the minor code
  55. * @param completed the completion status
  56. */
  57. public BAD_INV_ORDER(String s, int minor, CompletionStatus completed) {
  58. super(s, minor, completed);
  59. }
  60. }