Java Code Examples for org.omg.CORBA.INTERNAL.initCause()

The following are Jave code examples for showing how to use initCause() of the org.omg.CORBA.INTERNAL class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 6 votes
public INTERNAL workerThreadNotNeeded( CompletionStatus cs, Throwable t, Object arg0, Object arg1, Object arg2) {
    INTERNAL exc = new INTERNAL( WORKER_THREAD_NOT_NEEDED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.FINE )) {
        Object[] parameters = new Object[3] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        parameters[2] = arg2 ;
        doLog( Level.FINE, "ORBUTIL.workerThreadNotNeeded",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 2
Project: OpenJSharp   File: InterceptorsSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL piDiiResultIsNull( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( PI_DII_RESULT_IS_NULL, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.piDiiResultIsNull",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 3
Project: OpenJSharp   File: UtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL classNotFound( CompletionStatus cs, Throwable t, Object arg0) {
    INTERNAL exc = new INTERNAL( CLASS_NOT_FOUND, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "UTIL.classNotFound",
            parameters, UtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 4
Project: OpenJSharp   File: InterceptorsSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL exceptionInExceptions( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( EXCEPTION_IN_EXCEPTIONS, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.exceptionInExceptions",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 5
Project: OpenJSharp   File: NamingSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL namingCtxBindingIteratorCreate( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( NAMING_CTX_BINDING_ITERATOR_CREATE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.namingCtxBindingIteratorCreate",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 6
Project: OpenJSharp   File: NamingSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL transNcBindAlreadyBound( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( TRANS_NC_BIND_ALREADY_BOUND, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.transNcBindAlreadyBound",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 7
Project: OpenJSharp   File: POASystemException.java   Source Code and License Vote up 5 votes
public INTERNAL cantCloneTemplate( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( CANT_CLONE_TEMPLATE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.cantCloneTemplate",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 8
Project: OpenJSharp   File: NamingSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL namingCtxBadBindingtype( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( NAMING_CTX_BAD_BINDINGTYPE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.namingCtxBadBindingtype",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 9
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL errorResolvingAlias( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( ERROR_RESOLVING_ALIAS, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.errorResolvingAlias",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 10
Project: OpenJSharp   File: POASystemException.java   Source Code and License Vote up 5 votes
public INTERNAL badLocalreplystatus( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( BAD_LOCALREPLYSTATUS, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.badLocalreplystatus",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 11
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL emptyStackRunServantPostInvoke( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( EMPTY_STACK_RUN_SERVANT_POST_INVOKE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.emptyStackRunServantPostInvoke",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 12
Project: OpenJSharp   File: POASystemException.java   Source Code and License Vote up 5 votes
public INTERNAL aomEntryDecZero( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( AOM_ENTRY_DEC_ZERO, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "POA.aomEntryDecZero",
            parameters, POASystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 13
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL readUndeclaredException( CompletionStatus cs, Throwable t, Object arg0) {
    INTERNAL exc = new INTERNAL( READ_UNDECLARED_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.readUndeclaredException",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 14
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL peekstringFailed( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( PEEKSTRING_FAILED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.peekstringFailed",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 15
Project: OpenJSharp   File: NamingSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL namingCtxRebindAlreadyBound( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( NAMING_CTX_REBIND_ALREADY_BOUND, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "NAMING.namingCtxRebindAlreadyBound",
            parameters, NamingSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 16
Project: OpenJSharp   File: InterceptorsSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL servantInvalid( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( SERVANT_INVALID, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "INTERCEPTORS.servantInvalid",
            parameters, InterceptorsSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 17
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL unableToSetSocketFactoryOrb( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( UNABLE_TO_SET_SOCKET_FACTORY_ORB, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unableToSetSocketFactoryOrb",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 18
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL badGiopRequestType( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( BAD_GIOP_REQUEST_TYPE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.badGiopRequestType",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 19
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL exceptionWhenSendingCloseConnection( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( EXCEPTION_WHEN_SENDING_CLOSE_CONNECTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.exceptionWhenSendingCloseConnection",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 20
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public INTERNAL illegalTargetAddressDisposition( CompletionStatus cs, Throwable t ) {
    INTERNAL exc = new INTERNAL( ILLEGAL_TARGET_ADDRESS_DISPOSITION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.illegalTargetAddressDisposition",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}