1. /*
  2. * @(#)BAD_QOS.java 1.2 04/03/15
  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. * The <code>BAD_QOS</code> exception is raised whenever an object cannot
  10. * support the quality of service required by an invocation parameter that
  11. * has a quality of service semantics associated with it.
  12. *
  13. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  14. * Java IDL exceptions</A>
  15. * @version 1.0, 03/05/2004
  16. * @since J2SE 1.5
  17. */
  18. public final class BAD_QOS extends SystemException {
  19. /**
  20. * Constructs an <code>BAD_QOS</code> exception with
  21. * minor code set to 0 and CompletionStatus set to COMPLETED_NO.
  22. */
  23. public BAD_QOS() {
  24. this("");
  25. }
  26. /**
  27. * Constructs an <code>BAD_QOS</code> exception with the
  28. * specified message.
  29. *
  30. * @param detailMessage string containing a detailed message.
  31. */
  32. public BAD_QOS(String detailMessage) {
  33. this(detailMessage, 0, CompletionStatus.COMPLETED_NO);
  34. }
  35. /**
  36. * Constructs an <code>BAD_QOS</code> exception with the
  37. * specified minor code and completion status.
  38. *
  39. * @param minorCode minor code.
  40. * @param completionStatus completion status.
  41. */
  42. public BAD_QOS(int minorCode,
  43. CompletionStatus completionStatus) {
  44. this("", minorCode, completionStatus);
  45. }
  46. /**
  47. * Constructs an <code>BAD_QOS</code> exception with the
  48. * specified message, minor code, and completion status.
  49. *
  50. * @param detailMessage string containing a detailed message.
  51. * @param minorCode minor code.
  52. * @param completionStatus completion status.
  53. */
  54. public BAD_QOS(String detailMessage,
  55. int minorCode,
  56. CompletionStatus completionStatus) {
  57. super(detailMessage, minorCode, completionStatus);
  58. }
  59. }