// Log wrapper class for Sun private system exceptions in group ORBUTIL
//
// Generated by mc.scm version 1.3, DO NOT EDIT BY HAND!
// Generated from input file ../../../../src/share/classes/com/sun/corba/se/spi/logging/data/ORBUtil.mc on Wed May 28 02:01:50 PDT 2008
package com.sun.corba.se.impl.logging ;
import java.util.logging.Logger ;
import java.util.logging.Level ;
import org.omg.CORBA.OMGVMCID ;
import com.sun.corba.se.impl.util.SUNVMCID ;
import org.omg.CORBA.CompletionStatus ;
import org.omg.CORBA.SystemException ;
import com.sun.corba.se.spi.orb.ORB ;
import com.sun.corba.se.spi.logging.LogWrapperFactory;
import com.sun.corba.se.spi.logging.LogWrapperBase;
import org.omg.CORBA.BAD_OPERATION ;
import org.omg.CORBA.BAD_PARAM ;
import org.omg.CORBA.BAD_INV_ORDER ;
import org.omg.CORBA.BAD_TYPECODE ;
import org.omg.CORBA.COMM_FAILURE ;
import org.omg.CORBA.DATA_CONVERSION ;
import org.omg.CORBA.INV_OBJREF ;
import org.omg.CORBA.INITIALIZE ;
import org.omg.CORBA.INTERNAL ;
import org.omg.CORBA.MARSHAL ;
import org.omg.CORBA.NO_IMPLEMENT ;
import org.omg.CORBA.OBJ_ADAPTER ;
import org.omg.CORBA.OBJECT_NOT_EXIST ;
import org.omg.CORBA.TRANSIENT ;
import org.omg.CORBA.UNKNOWN ;
public class ORBUtilSystemException extends LogWrapperBase {
public ORBUtilSystemException( Logger logger )
{
super( logger ) ;
}
private static LogWrapperFactory factory = new LogWrapperFactory() {
public LogWrapperBase create( Logger logger )
{
return new ORBUtilSystemException( logger ) ;
}
} ;
public static ORBUtilSystemException get( ORB orb, String logDomain )
{
ORBUtilSystemException wrapper =
(ORBUtilSystemException) orb.getLogWrapper( logDomain,
"ORBUTIL", factory ) ;
return wrapper ;
}
public static ORBUtilSystemException get( String logDomain )
{
ORBUtilSystemException wrapper =
(ORBUtilSystemException) ORB.staticGetLogWrapper( logDomain,
"ORBUTIL", factory ) ;
return wrapper ;
}
///////////////////////////////////////////////////////////
// BAD_OPERATION
///////////////////////////////////////////////////////////
public static final int ADAPTER_ID_NOT_AVAILABLE = SUNVMCID.value + 201 ;
public BAD_OPERATION adapterIdNotAvailable( CompletionStatus cs, Throwable t ) {
BAD_OPERATION exc = new BAD_OPERATION( ADAPTER_ID_NOT_AVAILABLE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.adapterIdNotAvailable",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
public BAD_OPERATION adapterIdNotAvailable( CompletionStatus cs ) {
return adapterIdNotAvailable( cs, null ) ;
}
public BAD_OPERATION adapterIdNotAvailable( Throwable t ) {
return adapterIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
}
public BAD_OPERATION adapterIdNotAvailable( ) {
return adapterIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
}
public static final int SERVER_ID_NOT_AVAILABLE = SUNVMCID.value + 202 ;
public BAD_OPERATION serverIdNotAvailable( CompletionStatus cs, Throwable t ) {
BAD_OPERATION exc = new BAD_OPERATION( SERVER_ID_NOT_AVAILABLE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.serverIdNotAvailable",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
public BAD_OPERATION serverIdNotAvailable( CompletionStatus cs ) {
return serverIdNotAvailable( cs, null ) ;
}
public BAD_OPERATION serverIdNotAvailable( Throwable t ) {
return serverIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
}
public BAD_OPERATION serverIdNotAvailable( ) {
return serverIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
}
public static final int ORB_ID_NOT_AVAILABLE = SUNVMCID.value + 203 ;
public BAD_OPERATION orbIdNotAvailable( CompletionStatus cs, Throwable t ) {
BAD_OPERATION exc = new BAD_OPERATION( ORB_ID_NOT_AVAILABLE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.orbIdNotAvailable",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
public BAD_OPERATION orbIdNotAvailable( CompletionStatus cs ) {
return orbIdNotAvailable( cs, null ) ;
}
public BAD_OPERATION orbIdNotAvailable( Throwable t ) {
return orbIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
}
public BAD_OPERATION orbIdNotAvailable( ) {
return orbIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
}
public static final int OBJECT_ADAPTER_ID_NOT_AVAILABLE = SUNVMCID.value + 204 ;
public BAD_OPERATION objectAdapterIdNotAvailable( CompletionStatus cs, Throwable t ) {
BAD_OPERATION exc = new BAD_OPERATION( OBJECT_ADAPTER_ID_NOT_AVAILABLE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.objectAdapterIdNotAvailable",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
public BAD_OPERATION objectAdapterIdNotAvailable( CompletionStatus cs ) {
return objectAdapterIdNotAvailable( cs, null ) ;
}
public BAD_OPERATION objectAdapterIdNotAvailable( Throwable t ) {
return objectAdapterIdNotAvailable( CompletionStatus.COMPLETED_NO, t ) ;
}
public BAD_OPERATION objectAdapterIdNotAvailable( ) {
return objectAdapterIdNotAvailable( CompletionStatus.COMPLETED_NO, null ) ;
}
public static final int CONNECTING_SERVANT = SUNVMCID.value + 205 ;
public BAD_OPERATION connectingServant( CompletionStatus cs, Throwable t ) {
BAD_OPERATION exc = new BAD_OPERATION( CONNECTING_SERVANT, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.WARNING )) {
Object[] parameters = null ;
doLog( Level.WARNING, "ORBUTIL.connectingServant",
parameters, ORBUtilSystemException.class, exc ) ;
}
return exc ;
}
public BAD_OPERATION connectingServant( CompletionStatus cs ) {
return connectingServant( cs, null ) ;
}
public BAD_OPERATION connectingServant( Throwable t ) {
return connectingServant( CompletionStatus.COMPLETED_NO, t ) ;
}
public BAD_OPERATION connectingServant( ) {
return connectingServant( CompletionStatus.COMPLETED_NO, null ) ;
}
public static final int EXTRACT_WRONG_TYPE = SUNVMCID.value + 206 ;
public BAD_OPERATION extractWrongType( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
BAD_OPERATION exc = new BAD_OPERATION( EXTRACT_WRONG_TYPE, cs ) ;
if (t != null)
exc.initCause( t ) ;
if (logger.isLoggable( Level.FINE )) {
Object[] parameters = new Object[2] ;
parameters[0] = arg0 ;
- 1
- 2
- 3
- 4
前往页