1. /*
  2. * @(#)COMM_FAILURE.java 1.31 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. * This exception is raised if communication is lost while an operation
  10. * is in progress, after the request was sent by the client, but before
  11. * the reply from the server has been returned to the client.<P>
  12. * It contains a minor code, which gives more detailed information about
  13. * what caused the exception, and a completion status. It may also contain
  14. * a string describing the exception.
  15. * <P>
  16. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning
  17. * of minor codes</A> to see the minor codes for this exception.
  18. *
  19. * @see <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning of
  20. * minor codes</A>
  21. * @version 1.17, 09/09/97
  22. * @since JDK1.2
  23. */
  24. public final class COMM_FAILURE extends SystemException {
  25. /**
  26. * Constructs a <code>COMM_FAILURE</code> exception with
  27. * a default minor code of 0 and a completion state of COMPLETED_NO.
  28. */
  29. public COMM_FAILURE() {
  30. this("");
  31. }
  32. /**
  33. * Constructs a <code>COMM_FAILURE</code> exception with the specified detail
  34. * message, a minor code of 0, and a completion state of COMPLETED_NO.
  35. *
  36. * @param s the <code>String</code> containing a detail message describing
  37. * this exception
  38. */
  39. public COMM_FAILURE(String s) {
  40. this(s, 0, CompletionStatus.COMPLETED_NO);
  41. }
  42. /**
  43. * Constructs a <code>COMM_FAILURE</code> exception with the specified
  44. * minor code and completion status.
  45. * @param minor the minor code
  46. * @param completed the completion status, which must be one of
  47. * <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
  48. * <code>COMPLETED_MAYBE</code>.
  49. */
  50. public COMM_FAILURE(int minor, CompletionStatus completed) {
  51. this("", minor, completed);
  52. }
  53. /**
  54. * Constructs a <code>COMM_FAILURE</code> exception with the specified detail
  55. * message, minor code, and completion status.
  56. * A detail message is a String that describes this particular exception.
  57. * @param s the String containing a detail message
  58. * @param minor the minor code
  59. * @param completed the completion status, which must be one of
  60. * <code>COMPLETED_YES</code>, <code>COMPLETED_NO</code>, or
  61. * <code>COMPLETED_MAYBE</code>.
  62. */
  63. public COMM_FAILURE(String s, int minor, CompletionStatus completed) {
  64. super(s, minor, completed);
  65. }
  66. }