Examples of initCause()


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

    public static final int ADAPTER_ACTIVATOR_EXCEPTION = OMGVMCID.value + 1 ;
   
    public OBJ_ADAPTER adapterActivatorException( CompletionStatus cs, Throwable t, Object arg0, Object arg1) {
        OBJ_ADAPTER exc = new OBJ_ADAPTER( ADAPTER_ACTIVATOR_EXCEPTION, cs ) ;
        if (t != null)
            exc.initCause( t ) ;
       
        if (logger.isLoggable( Level.WARNING )) {
            Object[] parameters = new Object[2] ;
            parameters[0] = arg0 ;
            parameters[1] = arg1 ;
View Full Code Here

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

    protected SystemException translate_exception(IOException e) {
        SystemException result;

        result = new MARSHAL(e.getMessage());
        result.initCause(e);

        return result;
    }

  public abstract boolean __isLittleEndian();
View Full Code Here

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

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

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

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

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

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

Examples of org.omg.PortableInterceptor.ORBInitInfoPackage.InvalidName.initCause()

        // equivalent Portable Interceptors InvalidName.
        try {
            orb.register_initial_reference( id, obj );
        } catch( org.omg.CORBA.ORBPackage.InvalidName e ) {
            InvalidName exc = new InvalidName( e.getMessage() );
            exc.initCause( e ) ;
            throw exc ;
        }
    }

    /**
 
View Full Code Here

Examples of org.openbel.framework.core.protocol.ResourceDownloadError.initCause()

            }
        } catch (IOException e) {
            String msg = e.getMessage();
            ResourceDownloadError r =
                    new ResourceDownloadError(resourceLocation, msg);
            r.initCause(e);
            throw r;
        } finally {
            // clean up all I/O resources
            closeQuietly(fout);
            closeQuietly(gzipis);
View Full Code Here

Examples of org.opengis.coverage.processing.OperationNotFoundException.initCause()

          op = (AbstractOperation) operation;
      } catch (ClassCastException cause) {
          final OperationNotFoundException exception = new OperationNotFoundException(
                      Errors.getResources(getLocale()).getString(
                      ErrorKeys.OPERATION_NOT_FOUND_$1, operationName));
          exception.initCause(cause);
          throw exception;
      }
     
      //set up hints
      final Hints localMergeHints=this.hints.clone();
View Full Code Here

Examples of org.opengis.parameter.InvalidParameterNameException.initCause()

                target = copy.parameter(name);
            } catch (ParameterNotFoundException cause) {
                final InvalidParameterNameException exception =
                      new InvalidParameterNameException(Errors.format(
                          ErrorKeys.UNEXPECTED_PARAMETER_$1, name), name);
                exception.initCause(cause);
                throw exception;
            }
            final Object  v    = source.getValue();
            final Unit<?> unit = source.getUnit();
            if (unit == null) {
View Full Code Here

Examples of org.opengis.parameter.InvalidParameterTypeException.initCause()

            throw new IllegalStateException(Errors.format(ErrorKeys.MISSING_PARAMETER_$1, name));
        }
        final InvalidParameterTypeException exception =
                new InvalidParameterTypeException(getClassTypeError(), name);
        if (cause != null) {
            exception.initCause(cause);
        }
        throw exception;
    }

    /**
 
View Full Code Here
TOP
Copyright © 2018 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.