1. /*
  2. * @(#)BAD_PARAM.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_PARAM</code> exception, which is thrown
  10. * when an invalid parameter is passed to a method.
  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. * @see <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning of
  18. * minor codes</A>
  19. * @version 1.18, 09/09/97
  20. * @since JDK1.2
  21. */
  22. public final class BAD_PARAM extends SystemException {
  23. /**
  24. * Constructs a <code>BAD_PARAM</code> exception with a default
  25. * minor code of 0 and a completion state of COMPLETED_NO.
  26. */
  27. public BAD_PARAM() {
  28. this("");
  29. }
  30. /**
  31. * Constructs a <code>BAD_PARAM</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 describing this
  35. * exception
  36. */
  37. public BAD_PARAM(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs a <code>BAD_PARAM</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public BAD_PARAM(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>BAD_PARAM</code> exception with the specified detail
  51. * message, minor code, and completion status.
  52. * A detail message is a <code>String</code> that describes
  53. * this particular exception.
  54. *
  55. * @param s the <code>String</code> containing a detail message
  56. * @param minor the minor code
  57. * @param completed the completion status
  58. */
  59. public BAD_PARAM(String s, int minor, CompletionStatus completed) {
  60. super(s, minor, completed);
  61. }
  62. }