KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.omg.CORBA;
2
3 /**
4  * p. A-58/59 in orbos/98-01-06,
5  *
6  */

7 abstract public class SystemException extends java.lang.RuntimeException JavaDoc {
8
9     public int minor;
10     public CompletionStatus JavaDoc completed;
11
12     SystemException(String JavaDoc reason, int minor, CompletionStatus JavaDoc completed)
13     {
14         super( reason );
15         this.minor = minor;
16         this.completed = completed;
17     }
18
19     public String JavaDoc toString()
20     {
21         String JavaDoc result = getClass().getName() + "[";
22         if( minor != 0)
23         {
24             result += "minor=" + minor + ", ";
25         }
26         String JavaDoc[] comp = {"YES","NO","MAYBE"};
27         result += "completed=" + comp[completed.value()];
28         if( getMessage() != null )
29         {
30             result += ", reason=" + getMessage();
31         }
32         return result + "]";
33     }
34
35 }
36
37
38
Popular Tags