1 |
/* SystemException.java -- |
/* SystemException.java -- |
2 |
Copyright (C) 2005 Free Software Foundation, Inc. |
Copyright (C) 2005 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
6 |
GNU Classpath is free software; you can redistribute it and/or modify |
GNU Classpath is free software; you can redistribute it and/or modify |
7 |
it under the terms of the GNU General Public License as published by |
it under the terms of the GNU General Public License as published by |
8 |
the Free Software Foundation; either version 2, or (at your option) |
the Free Software Foundation; either version 2, or (at your option) |
9 |
any later version. |
any later version. |
10 |
|
|
11 |
GNU Classpath is distributed in the hope that it will be useful, but |
GNU Classpath is distributed in the hope that it will be useful, but |
12 |
WITHOUT ANY WARRANTY; without even the implied warranty of |
WITHOUT ANY WARRANTY; without even the implied warranty of |
13 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 |
General Public License for more details. |
General Public License for more details. |
15 |
|
|
16 |
You should have received a copy of the GNU General Public License |
You should have received a copy of the GNU General Public License |
17 |
along with GNU Classpath; see the file COPYING. If not, write to the |
along with GNU Classpath; see the file COPYING. If not, write to the |
18 |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 |
02110-1301 USA. |
02110-1301 USA. |
20 |
|
|
21 |
Linking this library statically or dynamically with other modules is |
Linking this library statically or dynamically with other modules is |
22 |
making a combined work based on this library. Thus, the terms and |
making a combined work based on this library. Thus, the terms and |
23 |
conditions of the GNU General Public License cover the whole |
conditions of the GNU General Public License cover the whole |
24 |
combination. |
combination. |
25 |
|
|
26 |
As a special exception, the copyright holders of this library give you |
As a special exception, the copyright holders of this library give you |
27 |
permission to link this library with independent modules to produce an |
permission to link this library with independent modules to produce an |
28 |
executable, regardless of the license terms of these independent |
executable, regardless of the license terms of these independent |
29 |
modules, and to copy and distribute the resulting executable under |
modules, and to copy and distribute the resulting executable under |
30 |
terms of your choice, provided that you also meet, for each linked |
terms of your choice, provided that you also meet, for each linked |
31 |
independent module, the terms and conditions of the license of that |
independent module, the terms and conditions of the license of that |
32 |
module. An independent module is a module which is not derived from |
module. An independent module is a module which is not derived from |
33 |
or based on this library. If you modify this library, you may extend |
or based on this library. If you modify this library, you may extend |
34 |
this exception to your version of the library, but you are not |
this exception to your version of the library, but you are not |
35 |
obligated to do so. If you do not wish to do so, delete this |
obligated to do so. If you do not wish to do so, delete this |
36 |
exception statement from your version. */ |
exception statement from your version. */ |
37 |
|
|
38 |
|
|
39 |
package org.omg.CORBA; |
package org.omg.CORBA; |
42 |
|
|
43 |
/** |
/** |
44 |
* The root class for all CORBA standard exceptions. |
* The root class for all CORBA standard exceptions. |
45 |
|
* |
46 |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
* @author Audrius Meskauskas (AudriusA@Bioinformatics.org) |
47 |
*/ |
*/ |
48 |
public class SystemException |
public class SystemException |
50 |
implements Serializable |
implements Serializable |
51 |
{ |
{ |
52 |
/** |
/** |
53 |
* Use serialVersionUID for interoperability. |
* Use serialVersionUID for interoperability. Using the version 1.4 UID. |
|
* Using the version 1.4 UID. |
|
54 |
*/ |
*/ |
55 |
private static final long serialVersionUID = -8486391734674855519L; |
private static final long serialVersionUID = -8486391734674855519L; |
56 |
|
|
60 |
public CompletionStatus completed; |
public CompletionStatus completed; |
61 |
|
|
62 |
/** |
/** |
63 |
* The additional exception error code ("minor"). |
* <p> |
64 |
|
* Contains more details about the exception. The lower 12 bits contain a |
65 |
|
* code, defining the reason why exception has been thrown. The higher 20 bits |
66 |
|
* hold "Vendor Minor Codeset ID" (VMCID), for instance 0x4F4D0000 (OMG |
67 |
|
* standard), 0x54410000 (TAO), 0x4A430000 (JacORB), 0x49540000 (IONA) or |
68 |
|
* 0x53550000 (Sun). |
69 |
|
* </p> |
70 |
|
* |
71 |
|
* <p> |
72 |
|
* The standard minor codes for the standard system exceptions are prefaced by |
73 |
|
* the VMCID assigned to OMG, defined as 0x4F4D0000 (the code of |
74 |
|
* the minor field for the standard exception with minor code 1 is |
75 |
|
* 0x4F4D0001). Within a vendor assigned space, the assignment of values to |
76 |
|
* minor codes is left to the vendor. |
77 |
|
* </p> |
78 |
|
* |
79 |
|
* The VMCID 0 and 0xfffff are reserved for experimental use. |
80 |
*/ |
*/ |
81 |
public int minor; |
public int minor; |
82 |
|
|
83 |
/** |
/** |
84 |
* Constructs an instance of the CORBA standard exception. |
* Constructs an instance of the CORBA standard exception. |
85 |
* @param a_reason a string, explaining the reason why the |
* |
86 |
* exceptions has been thrown. |
* @param a_reason a string, explaining the reason why the exceptions has been |
87 |
|
* thrown. |
88 |
* @param a_minor an additional error code (known as the "minor") |
* @param a_minor an additional error code (known as the "minor") |
89 |
* @param a_completed the task completion status. |
* @param a_completed the task completion status. |
90 |
*/ |
*/ |
91 |
protected SystemException(String a_reason, int a_minor, |
protected SystemException(String a_reason, int a_minor, |
92 |
CompletionStatus a_completed |
CompletionStatus a_completed) |
|
) |
|
93 |
{ |
{ |
94 |
super(a_reason); |
super(a_reason); |
95 |
minor = a_minor; |
minor = a_minor; |