1. /*
  2. * @(#)BAD_PARAM.java 1.33 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. * Exception thrown
  10. * when a parameter passed to a call is out of range or
  11. * otherwise considered illegal. An ORB may raise this exception
  12. * if null values or null pointers are passed to an operation (for
  13. * language mappings where the concept of a null pointers or null
  14. * values applies). BAD_PARAM can also be raised as a result of a
  15. * client generating requests with incorrect parameters using the DII. <P>
  16. * It contains a minor code, which gives more detailed information about
  17. * what caused the exception, and a completion status. It may also contain
  18. * a string describing the exception.
  19. *
  20. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  21. * Java IDL exceptions</A>
  22. * @see <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning of
  23. * minor codes</A>
  24. * @version 1.18, 09/09/97
  25. * @since JDK1.2
  26. */
  27. public final class BAD_PARAM extends SystemException {
  28. /**
  29. * Constructs a <code>BAD_PARAM</code> exception with a default
  30. * minor code of 0 and a completion state of COMPLETED_NO.
  31. */
  32. public BAD_PARAM() {
  33. this("");
  34. }
  35. /**
  36. * Constructs a <code>BAD_PARAM</code> exception with the specified detail
  37. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  38. *
  39. * @param s the String containing a detail message describing this
  40. * exception
  41. */
  42. public BAD_PARAM(String s) {
  43. this(s, 0, CompletionStatus.COMPLETED_NO);
  44. }
  45. /**
  46. * Constructs a <code>BAD_PARAM</code> exception with the specified
  47. * minor code and completion status.
  48. * @param minor the minor code
  49. * @param completed the completion status
  50. */
  51. public BAD_PARAM(int minor, CompletionStatus completed) {
  52. this("", minor, completed);
  53. }
  54. /**
  55. * Constructs a <code>BAD_PARAM</code> exception with the specified detail
  56. * message, minor code, and completion status.
  57. * A detail message is a <code>String</code> that describes
  58. * this particular exception.
  59. *
  60. * @param s the <code>String</code> containing a detail message
  61. * @param minor the minor code
  62. * @param completed the completion status
  63. */
  64. public BAD_PARAM(String s, int minor, CompletionStatus completed) {
  65. super(s, minor, completed);
  66. }
  67. }