1. /*
  2. * @(#)MARSHAL.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. * A request or reply from the network is structurally invalid.
  10. * This error typically indicates a bug in either the client-side
  11. * or server-side run time. For example, if a reply from the server
  12. * indicates that the message contains 1000 bytes, but the actual
  13. * message is shorter or longer than 1000 bytes, the ORB raises
  14. * this exception. <tt>MARSHAL</tt> can also be caused by using
  15. * the DII or DSI incorrectly, for example, if the type of the
  16. * actual parameters sent does not agree with IDL signature of an
  17. * operation.<P>
  18. * It contains a minor code, which gives more detailed information about
  19. * what caused the exception, and a completion status. It may also contain
  20. * a string describing the exception.
  21. * <P>
  22. * See the section <A href="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">Minor
  23. * Code Meanings</A> to see the minor codes for this exception.
  24. *
  25. * @version 1.18, 09/09/97
  26. * @since JDK1.2
  27. */
  28. public final class MARSHAL extends SystemException {
  29. /**
  30. * Constructs a <code>MARSHAL</code> exception with a default minor code
  31. * of 0, a completion state of CompletionStatus.COMPLETED_NO,
  32. * and a null description.
  33. */
  34. public MARSHAL() {
  35. this("");
  36. }
  37. /**
  38. * Constructs a <code>MARSHAL</code> exception with the specified description message,
  39. * a minor code of 0, and a completion state of COMPLETED_NO.
  40. * @param s the String containing a description of the exception
  41. */
  42. public MARSHAL(String s) {
  43. this(s, 0, CompletionStatus.COMPLETED_NO);
  44. }
  45. /**
  46. * Constructs a <code>MARSHAL</code> exception with the specified
  47. * minor code and completion status.
  48. * @param minor the minor code
  49. * @param completed the completion status
  50. */
  51. public MARSHAL(int minor, CompletionStatus completed) {
  52. this("", minor, completed);
  53. }
  54. /**
  55. * Constructs a <code>MARSHAL</code> exception with the specified description
  56. * message, minor code, and completion status.
  57. * @param s the String containing a description message
  58. * @param minor the minor code
  59. * @param completed the completion status
  60. */
  61. public MARSHAL(String s, int minor, CompletionStatus completed) {
  62. super(s, minor, completed);
  63. }
  64. }