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