Examples of initCause()


Examples of org.jruby.exceptions.RaiseException.initCause()

        try {
            return JavaObject.wrap(getRuntime(), newInstance(converted, handler));
        } catch (Exception e) {
            RaiseException ex = getRuntime().newArgumentError(
                    "Constructor invocation failed: " + e.getMessage());
            ex.initCause(e);
            throw ex;
        }
    }
   
    public JavaObject newInstance(final IRubyObject self, Object[] args) {
View Full Code Here

Examples of org.json.JSONException.initCause()

            }
        }

        private JSONException makeJSONException(Exception exp) {
            JSONException jexp = new JSONException(exp.toString());
            jexp.initCause(exp);
            return jexp;
        }
    }
}
View Full Code Here

Examples of org.locationtech.udig.project.render.RenderException.initCause()

    }

    public RenderException wrapException( Throwable t ) {
        getContext().setStatus(ILayer.ERROR);
        RenderException renderException = new RenderException(t.getLocalizedMessage());
        renderException.initCause(t);
        return renderException;
    }

    @Override
    public ICompositeRenderContext getContext() {
View Full Code Here

Examples of org.omg.CORBA.BAD_CONTEXT.initCause()

    public static final int IDL_CONTEXT_NOT_FOUND = OMGVMCID.value + 1 ;
   
    public BAD_CONTEXT idlContextNotFound( CompletionStatus cs, Throwable t ) {
        BAD_CONTEXT exc = new BAD_CONTEXT( IDL_CONTEXT_NOT_FOUND, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.idlContextNotFound",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.BAD_INV_ORDER.initCause()

    public static final int DEP_PREVENT_DESTRUCTION = OMGVMCID.value + 1 ;
   
    public BAD_INV_ORDER depPreventDestruction( CompletionStatus cs, Throwable t ) {
        BAD_INV_ORDER exc = new BAD_INV_ORDER( DEP_PREVENT_DESTRUCTION, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.depPreventDestruction",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.BAD_OPERATION.initCause()

    public static final int STUB_FACTORY_COULD_NOT_MAKE_STUB = SUNVMCID.value + 1401 ;
   
    public BAD_OPERATION stubFactoryCouldNotMakeStub( CompletionStatus cs, Throwable t ) {
        BAD_OPERATION exc = new BAD_OPERATION( STUB_FACTORY_COULD_NOT_MAKE_STUB, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.FINE )) {
            Object[] parameters = null ;
            doLog( Level.FINE, "UTIL.stubFactoryCouldNotMakeStub",
                parameters, UtilSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.BAD_PARAM.initCause()

    private void throwBadParam( String msg, Throwable exc )
    {
        BAD_PARAM error = new BAD_PARAM( msg ) ;
        if (exc != null)
            error.initCause( exc ) ;
        throw error ;
    }

    public ServiceContextData( Class cls )
    {
View Full Code Here

Examples of org.omg.CORBA.BAD_TYPECODE.initCause()

    public static final int MARSHALL_INCOMPLETE_TYPECODE = OMGVMCID.value + 1 ;
   
    public BAD_TYPECODE marshallIncompleteTypecode( CompletionStatus cs, Throwable t ) {
        BAD_TYPECODE exc = new BAD_TYPECODE( MARSHALL_INCOMPLETE_TYPECODE, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.marshallIncompleteTypecode",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.COMM_FAILURE.initCause()

    public static final int IOEXCEPTION_DURING_CANCEL_REQUEST = SUNVMCID.value + 801 ;
   
    public COMM_FAILURE ioexceptionDuringCancelRequest( CompletionStatus cs, Throwable t ) {
        COMM_FAILURE exc = new COMM_FAILURE( IOEXCEPTION_DURING_CANCEL_REQUEST, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "INTERCEPTORS.ioexceptionDuringCancelRequest",
                parameters, InterceptorsSystemException.class, exc ) ;
View Full Code Here

Examples of org.omg.CORBA.DATA_CONVERSION.initCause()

    public static final int CHAR_NOT_IN_CODESET = OMGVMCID.value + 1 ;
   
    public DATA_CONVERSION charNotInCodeset( CompletionStatus cs, Throwable t ) {
        DATA_CONVERSION exc = new DATA_CONVERSION( CHAR_NOT_IN_CODESET, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = null ;
            doLog( Level.WARNING, "OMG.charNotInCodeset",
                parameters, OMGSystemException.class, exc ) ;
View Full Code Here
TOP
Copyright © 2015 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.