1. /*
  2. * @(#)TRANSIENT.java 1.24 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>TRANSIENT</code> exception, which is thrown
  13. * by the server to signal a transient failure
  14. * that might not occur again if the request is retried.
  15. * It contains a minor code, which gives more detailed information about
  16. * what caused the exception, and a completion status. It may also contain
  17. * a string describing the exception.
  18. *
  19. * @see <A href="../../../../guide/idl/jidlExceptions.html">documentation on
  20. * Java IDL exceptions</A>
  21. * @version 1.17 09/09/97
  22. */
  23. public final class TRANSIENT extends SystemException {
  24. /**
  25. * Constructs a <code>TRANSIENT</code> exception with a default minor code
  26. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  27. * and a null description.
  28. */
  29. public TRANSIENT() {
  30. this("");
  31. }
  32. /**
  33. * Constructs a <code>TRANSIENT</code> exception with the specified description message,
  34. * a minor code of 0, and a completion state of COMPLETED_NO.
  35. * @param s the String containing a detail message
  36. */
  37. public TRANSIENT(String s) {
  38. this(s, 0, CompletionStatus.COMPLETED_NO);
  39. }
  40. /**
  41. * Constructs a <code>TRANSIENT</code> exception with the specified
  42. * minor code and completion status.
  43. * @param minor the minor code
  44. * @param completed the completion status
  45. */
  46. public TRANSIENT(int minor, CompletionStatus completed) {
  47. this("", minor, completed);
  48. }
  49. /**
  50. * Constructs a <code>TRANSIENT</code> exception with the specified description
  51. * message, minor code, and completion status.
  52. * @param s the String containing a description message
  53. * @param minor the minor code
  54. * @param completed the completion status
  55. */
  56. public TRANSIENT(String s, int minor, CompletionStatus completed) {
  57. super(s, minor, completed);
  58. }
  59. }