1 package org.omg.CORBA; 2 3 7 abstract public class SystemException extends java.lang.RuntimeException { 8 9 public int minor; 10 public CompletionStatus completed; 11 12 SystemException(String reason, int minor, CompletionStatus completed) 13 { 14 super( reason ); 15 this.minor = minor; 16 this.completed = completed; 17 } 18 19 public String toString() 20 { 21 String result = getClass().getName() + "["; 22 if( minor != 0) 23 { 24 result += "minor=" + minor + ", "; 25 } 26 String [] 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 |