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