1. /*
  2. * @(#)BAD_OPERATION.java 1.33 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 when an object reference denotes an existing object,
  10. * but that the object does not support the operation that was invoked.<P>
  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.17, 09/09/97
  18. * @since JDK1.2
  19. */
  20. public final class BAD_OPERATION extends SystemException {
  21. /**
  22. * Constructs a <code>BAD_OPERATION</code> exception with a default
  23. * minor code of 0 and a completion state of COMPLETED_NO.
  24. */
  25. public BAD_OPERATION() {
  26. this("");
  27. }
  28. /**
  29. * Constructs a <code>BAD_OPERATION</code> exception with the specified detail
  30. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  31. * @param s the String containing a detail message
  32. */
  33. public BAD_OPERATION(String s) {
  34. this(s, 0, CompletionStatus.COMPLETED_NO);
  35. }
  36. /**
  37. * Constructs a <code>BAD_OPERATION</code> exception with the specified
  38. * minor code and completion status.
  39. * @param minor the minor code
  40. * @param completed an instance of <code>CompletionStatus</code> indicating
  41. * the completion status
  42. */
  43. public BAD_OPERATION(int minor, CompletionStatus completed) {
  44. this("", minor, completed);
  45. }
  46. /**
  47. * Constructs a <code>BAD_OPERATION</code> exception with the specified detail
  48. * message, minor code, and completion status.
  49. * A detail message is a String that describes this particular exception.
  50. * @param s the String containing a detail message
  51. * @param minor the minor code
  52. * @param completed an instance of <code>CompletionStatus</code> indicating
  53. * the completion status
  54. */
  55. public BAD_OPERATION(String s, int minor, CompletionStatus completed) {
  56. super(s, minor, completed);
  57. }
  58. }