1. /*
  2. * @(#)COMM_FAILURE.java 1.23 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>COMM_FAILURE</code> exception, which is thrown
  10. * when there is a communication failure.
  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. * <P>
  15. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning
  16. * of minor codes</A> to see the minor codes for this exception.
  17. *
  18. * @see <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning of
  19. * minor codes</A>
  20. * @version 1.17, 09/09/97
  21. * @since JDK1.2
  22. */
  23. public final class COMM_FAILURE extends SystemException {
  24. /**
  25. * Constructs a <code>COMM_FAILURE</code> exception with
  26. * a default minor code of 0 and a completion state of COMPLETED_NO.
  27. */
  28. public COMM_FAILURE() {
  29. this("");
  30. }
  31. /**
  32. * Constructs a <code>COMM_FAILURE</code> exception with the specified detail
  33. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  34. *
  35. * @param s the <code>String</code> containing a detail message describing
  36. * this exception
  37. */
  38. public COMM_FAILURE(String s) {
  39. this(s, 0, CompletionStatus.COMPLETED_NO);
  40. }
  41. /**
  42. * Constructs a <code>COMM_FAILURE</code> exception with the specified
  43. * minor code and completion status.
  44. * @param minor the minor code
  45. * @param completed the completion status, which must be one of
  46. * <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
  47. * <code>COMPLETED_MAYBE</code>.
  48. */
  49. public COMM_FAILURE(int minor, CompletionStatus completed) {
  50. this("", minor, completed);
  51. }
  52. /**
  53. * Constructs a <code>COMM_FAILURE</code> exception with the specified detail
  54. * message, minor code, and completion status.
  55. * A detail message is a String that describes this particular exception.
  56. * @param s the String containing a detail message
  57. * @param minor the minor code
  58. * @param completed the completion status, which must be one of
  59. * <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
  60. * <code>COMPLETED_MAYBE</code>.
  61. */
  62. public COMM_FAILURE(String s, int minor, CompletionStatus completed) {
  63. super(s, minor, completed);
  64. }
  65. }