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