KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > omg > CORBA > DATA_CONVERSION


1 /*
2  * @(#)DATA_CONVERSION.java 1.30 03/12/19
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package org.omg.CORBA;
9
10 /**
11  * This exception is raised if an ORB cannot convert the representation
12  * of data as marshaled into its native representation or vice-versa.
13  * For example, DATA_CONVERSION can be raised if wide character codeset
14  * conversion fails, or if an ORB cannot convert floating point values
15  * between different representations.<P>
16  * It contains a minor code, which gives more detailed information about
17  * what caused the exception, and a completion status. It may also contain
18  * a string describing the exception.
19  * <P>
20  * See the section <A HREF="../../../../guide/idl/jidlExceptions.html#minorcodemeanings">meaning
21  * of minor codes</A> to see the minor codes for this exception.
22  *
23  * @see <A HREF="../../../../guide/idl/jidlExceptions.html">documentation on
24  * Java&nbsp;IDL exceptions</A>
25  * @version 1.16, 09/09/97
26  * @since JDK1.2
27  */

28
29 public final class DATA_CONVERSION extends SystemException JavaDoc {
30
31     /**
32      * Constructs a <code>DATA_CONVERSION</code> exception with a default minor code
33      * of 0 and a completion state of COMPLETED_NO.
34      */

35     public DATA_CONVERSION() {
36         this("");
37     }
38
39     /**
40      * Constructs a <code>DATA_CONVERSION</code> exception with the specified detail.
41      * @param s the String containing a detail message
42      */

43     public DATA_CONVERSION(String JavaDoc s) {
44         this(s, 0, CompletionStatus.COMPLETED_NO);
45     }
46
47     /**
48      * Constructs a <code>DATA_CONVERSION</code> exception with the specified
49      * minor code and completion status.
50      * @param minor the minor code
51      * @param completed the completion status
52      */

53     public DATA_CONVERSION(int minor, CompletionStatus JavaDoc completed) {
54         this("", minor, completed);
55     }
56
57     /**
58      * Constructs a <code>DATA_CONVERSION</code> exception with the specified detail
59      * message, minor code, and completion status.
60      * A detail message is a String that describes this particular exception.
61      * @param s the String containing a detail message
62      * @param minor the minor code
63      * @param completed the completion status
64      */

65     public DATA_CONVERSION(String JavaDoc s, int minor, CompletionStatus JavaDoc completed) {
66         super(s, minor, completed);
67     }
68 }
69
Popular Tags