⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 namingsystemexception.java

📁 java1.6众多例子参考
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
// Log wrapper class for Sun private system exceptions in group NAMING
//
// 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/Naming.mc on Mon Jul 21 01:27:36 GMT-08:00 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_PARAM ;
import org.omg.CORBA.UNKNOWN ;
import org.omg.CORBA.INITIALIZE ;
import org.omg.CORBA.INTERNAL ;

public class NamingSystemException extends LogWrapperBase {
    
    public NamingSystemException( Logger logger )
    {
        super( logger ) ;
    }
    
    private static LogWrapperFactory factory = new LogWrapperFactory() {
        public LogWrapperBase create( Logger logger )
        {
            return new NamingSystemException( logger ) ;
        }
    } ;
    
    public static NamingSystemException get( ORB orb, String logDomain )
    {
        NamingSystemException wrapper = 
            (NamingSystemException) orb.getLogWrapper( logDomain, 
                "NAMING", factory ) ;
        return wrapper ;
    } 
    
    public static NamingSystemException get( String logDomain )
    {
        NamingSystemException wrapper = 
            (NamingSystemException) ORB.staticGetLogWrapper( logDomain, 
                "NAMING", factory ) ;
        return wrapper ;
    } 
    
    ///////////////////////////////////////////////////////////
    // BAD_PARAM
    ///////////////////////////////////////////////////////////
    
    public static final int TRANSIENT_NAME_SERVER_BAD_PORT = SUNVMCID.value + 600 ;
    
    public BAD_PARAM transientNameServerBadPort( CompletionStatus cs, Throwable t ) {
        BAD_PARAM exc = new BAD_PARAM( TRANSIENT_NAME_SERVER_BAD_PORT, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.transientNameServerBadPort",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public BAD_PARAM transientNameServerBadPort( CompletionStatus cs ) {
        return transientNameServerBadPort( cs, null  ) ;
    }
    
    public BAD_PARAM transientNameServerBadPort( Throwable t ) {
        return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public BAD_PARAM transientNameServerBadPort(  ) {
        return transientNameServerBadPort( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int TRANSIENT_NAME_SERVER_BAD_HOST = SUNVMCID.value + 601 ;
    
    public BAD_PARAM transientNameServerBadHost( CompletionStatus cs, Throwable t ) {
        BAD_PARAM exc = new BAD_PARAM( TRANSIENT_NAME_SERVER_BAD_HOST, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.transientNameServerBadHost",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public BAD_PARAM transientNameServerBadHost( CompletionStatus cs ) {
        return transientNameServerBadHost( cs, null  ) ;
    }
    
    public BAD_PARAM transientNameServerBadHost( Throwable t ) {
        return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public BAD_PARAM transientNameServerBadHost(  ) {
        return transientNameServerBadHost( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int OBJECT_IS_NULL = SUNVMCID.value + 602 ;
    
    public BAD_PARAM objectIsNull( CompletionStatus cs, Throwable t ) {
        BAD_PARAM exc = new BAD_PARAM( OBJECT_IS_NULL, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.objectIsNull",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public BAD_PARAM objectIsNull( CompletionStatus cs ) {
        return objectIsNull( cs, null  ) ;
    }
    
    public BAD_PARAM objectIsNull( Throwable t ) {
        return objectIsNull( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public BAD_PARAM objectIsNull(  ) {
        return objectIsNull( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int INS_BAD_ADDRESS = SUNVMCID.value + 603 ;
    
    public BAD_PARAM insBadAddress( CompletionStatus cs, Throwable t ) {
        BAD_PARAM exc = new BAD_PARAM( INS_BAD_ADDRESS, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.insBadAddress",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public BAD_PARAM insBadAddress( CompletionStatus cs ) {
        return insBadAddress( cs, null  ) ;
    }
    
    public BAD_PARAM insBadAddress( Throwable t ) {
        return insBadAddress( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public BAD_PARAM insBadAddress(  ) {
        return insBadAddress( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    ///////////////////////////////////////////////////////////
    // UNKNOWN
    ///////////////////////////////////////////////////////////
    
    public static final int BIND_UPDATE_CONTEXT_FAILED = SUNVMCID.value + 600 ;
    
    public UNKNOWN bindUpdateContextFailed( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( BIND_UPDATE_CONTEXT_FAILED, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.bindUpdateContextFailed",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public UNKNOWN bindUpdateContextFailed( CompletionStatus cs ) {
        return bindUpdateContextFailed( cs, null  ) ;
    }
    
    public UNKNOWN bindUpdateContextFailed( Throwable t ) {
        return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public UNKNOWN bindUpdateContextFailed(  ) {
        return bindUpdateContextFailed( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int BIND_FAILURE = SUNVMCID.value + 601 ;
    
    public UNKNOWN bindFailure( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( BIND_FAILURE, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.bindFailure",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public UNKNOWN bindFailure( CompletionStatus cs ) {
        return bindFailure( cs, null  ) ;
    }
    
    public UNKNOWN bindFailure( Throwable t ) {
        return bindFailure( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public UNKNOWN bindFailure(  ) {
        return bindFailure( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int RESOLVE_CONVERSION_FAILURE = SUNVMCID.value + 602 ;
    
    public UNKNOWN resolveConversionFailure( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( RESOLVE_CONVERSION_FAILURE, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.resolveConversionFailure",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public UNKNOWN resolveConversionFailure( CompletionStatus cs ) {
        return resolveConversionFailure( cs, null  ) ;
    }
    
    public UNKNOWN resolveConversionFailure( Throwable t ) {
        return resolveConversionFailure( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public UNKNOWN resolveConversionFailure(  ) {
        return resolveConversionFailure( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int RESOLVE_FAILURE = SUNVMCID.value + 603 ;
    
    public UNKNOWN resolveFailure( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( RESOLVE_FAILURE, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.resolveFailure",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public UNKNOWN resolveFailure( CompletionStatus cs ) {
        return resolveFailure( cs, null  ) ;
    }
    
    public UNKNOWN resolveFailure( Throwable t ) {
        return resolveFailure( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public UNKNOWN resolveFailure(  ) {
        return resolveFailure( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int UNBIND_FAILURE = SUNVMCID.value + 604 ;
    
    public UNKNOWN unbindFailure( CompletionStatus cs, Throwable t ) {
        UNKNOWN exc = new UNKNOWN( UNBIND_FAILURE, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.unbindFailure",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public UNKNOWN unbindFailure( CompletionStatus cs ) {
        return unbindFailure( cs, null  ) ;
    }
    
    public UNKNOWN unbindFailure( Throwable t ) {
        return unbindFailure( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public UNKNOWN unbindFailure(  ) {
        return unbindFailure( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    ///////////////////////////////////////////////////////////
    // INITIALIZE
    ///////////////////////////////////////////////////////////
    
    public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS = SUNVMCID.value + 650 ;
    
    public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs, Throwable t ) {
        INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC_SYS, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNcSys",
                parameters, NamingSystemException.class, exc ) ;
        }
        
        return exc ;
    }
    
    public INITIALIZE transNsCannotCreateInitialNcSys( CompletionStatus cs ) {
        return transNsCannotCreateInitialNcSys( cs, null  ) ;
    }
    
    public INITIALIZE transNsCannotCreateInitialNcSys( Throwable t ) {
        return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, t  ) ;
    }
    
    public INITIALIZE transNsCannotCreateInitialNcSys(  ) {
        return transNsCannotCreateInitialNcSys( CompletionStatus.COMPLETED_NO, null  ) ;
    }
    
    public static final int TRANS_NS_CANNOT_CREATE_INITIAL_NC = SUNVMCID.value + 651 ;
    
    public INITIALIZE transNsCannotCreateInitialNc( CompletionStatus cs, Throwable t ) {
        INITIALIZE exc = new INITIALIZE( TRANS_NS_CANNOT_CREATE_INITIAL_NC, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
        
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "NAMING.transNsCannotCreateInitialNc",
                parameters, NamingSystemException.class, exc ) ;
        }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -