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

The following are Jave code examples for showing how to use initCause() of the org.omg.CORBA.MARSHAL 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 5 votes
public MARSHAL badFixed( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
    MARSHAL exc = new MARSHAL( BAD_FIXED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[2] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        doLog( Level.WARNING, "ORBUTIL.badFixed",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 2
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL positiveEndTag( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
    MARSHAL exc = new MARSHAL( POSITIVE_END_TAG, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[2] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        doLog( Level.WARNING, "ORBUTIL.positiveEndTag",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 3
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL readObjectException( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( READ_OBJECT_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.readObjectException",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 4
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL couldNotInstantiateHelper( CompletionStatus cs, Throwable t, Object arg0) {
    MARSHAL exc = new MARSHAL( COULD_NOT_INSTANTIATE_HELPER, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.couldNotInstantiateHelper",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 5
Project: OpenJSharp   File: UtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL unableLocateValueHelper( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( UNABLE_LOCATE_VALUE_HELPER, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "UTIL.unableLocateValueHelper",
            parameters, UtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 6
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL invalidComplexTypecode( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( INVALID_COMPLEX_TYPECODE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.invalidComplexTypecode",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 7
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL readObjectLoadClassFailure( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
    MARSHAL exc = new MARSHAL( READ_OBJECT_LOAD_CLASS_FAILURE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[2] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        doLog( Level.WARNING, "ORBUTIL.readObjectLoadClassFailure",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 8
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL customWrapperIndirection( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( CUSTOM_WRAPPER_INDIRECTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.customWrapperIndirection",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 9
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL couldNotInvokeHelperReadMethod( CompletionStatus cs, Throwable t, Object arg0) {
    MARSHAL exc = new MARSHAL( COULD_NOT_INVOKE_HELPER_READ_METHOD, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.couldNotInvokeHelperReadMethod",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 10
Project: OpenJSharp   File: OMGSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL wcharBadGiopVersionSent( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( WCHAR_BAD_GIOP_VERSION_SENT, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "OMG.wcharBadGiopVersionSent",
            parameters, OMGSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 11
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL valuehandlerReadException( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( VALUEHANDLER_READ_EXCEPTION, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.valuehandlerReadException",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 12
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL cannotMarshalNative( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( CANNOT_MARSHAL_NATIVE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.cannotMarshalNative",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 13
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL cnfeReadClass( CompletionStatus cs, Throwable t, Object arg0) {
    MARSHAL exc = new MARSHAL( CNFE_READ_CLASS, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.cnfeReadClass",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 14
Project: OpenJSharp   File: OMGSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL wcharBadGiopVersionReturned( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( WCHAR_BAD_GIOP_VERSION_RETURNED, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "OMG.wcharBadGiopVersionReturned",
            parameters, OMGSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 15
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL cannotMarshalBadTckind( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( CANNOT_MARSHAL_BAD_TCKIND, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.cannotMarshalBadTckind",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 16
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL invalidSimpleTypecode( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( INVALID_SIMPLE_TYPECODE, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.invalidSimpleTypecode",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 17
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL wcharDataInGiop10( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( WCHAR_DATA_IN_GIOP_1_0, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.wcharDataInGiop10",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 18
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL negativeStringLength( CompletionStatus cs, Throwable t, Object arg0) {
    MARSHAL exc = new MARSHAL( NEGATIVE_STRING_LENGTH, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[1] ;
        parameters[0] = arg0 ;
        doLog( Level.WARNING, "ORBUTIL.negativeStringLength",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 19
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL couldNotSkipBytes( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
    MARSHAL exc = new MARSHAL( COULD_NOT_SKIP_BYTES, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = new Object[2] ;
        parameters[0] = arg0 ;
        parameters[1] = arg1 ;
        doLog( Level.WARNING, "ORBUTIL.couldNotSkipBytes",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}
 
Example 20
Project: OpenJSharp   File: ORBUtilSystemException.java   Source Code and License Vote up 5 votes
public MARSHAL unexpectedUnionDefault( CompletionStatus cs, Throwable t ) {
    MARSHAL exc = new MARSHAL( UNEXPECTED_UNION_DEFAULT, cs ) ;
    if (t != null)
        exc.initCause( t ) ;
    
    if (logger.isLoggable( Level.WARNING )) {
        Object[] parameters = null ;
        doLog( Level.WARNING, "ORBUTIL.unexpectedUnionDefault",
            parameters, ORBUtilSystemException.class, exc ) ;
    }
    
    return exc ;
}