Examples of ExceptionHandler


Examples of org.apache.tuscany.sca.databinding.ExceptionHandler

        DataBinding targetDataBinding =
            mediator.getDataBindings().getDataBinding(targetFaultType.getDataBinding());
        if (targetDataBinding == null) {
            return null;
        }
        ExceptionHandler targetHandler = targetDataBinding.getExceptionHandler();
        return targetHandler;
    }
View Full Code Here

Examples of org.drools.process.core.context.exception.ExceptionHandler

    public ExceptionScope getExceptionScope() {
        return (ExceptionScope) getContext();
    }
   
    public void handleException(String exception, Object params) {
        ExceptionHandler handler = getExceptionScope().getExceptionHandler(exception);
        if (handler == null) {
            throw new IllegalArgumentException(
                "Could not find ExceptionHandler for " + exception);
        }
        handleException(handler, exception, params);
View Full Code Here

Examples of org.eclipse.e4.ui.internal.workbench.ExceptionHandler

  // TODO This should go into a different bundle
  public static IEclipseContext createDefaultHeadlessContext() {
      IEclipseContext serviceContext = E4Workbench.getServiceContext();

      IExtensionRegistry registry = RegistryFactory.getRegistry();
      ExceptionHandler exceptionHandler = new ExceptionHandler();
      ReflectionContributionFactory contributionFactory = new ReflectionContributionFactory(
          registry);
      serviceContext.set(IContributionFactory.class, contributionFactory);
      serviceContext.set(IExceptionHandler.class, exceptionHandler);
      serviceContext.set(IExtensionRegistry.class, registry);
View Full Code Here

Examples of org.eclipse.persistence.exceptions.ExceptionHandler

                                    login(getDatabaseSession(), deployProperties, requiresConnection);
                                }
                                // Make JTA integration throw JPA exceptions.
                                if (this.session.hasExternalTransactionController()) {
                                    if (this.session.getExternalTransactionController().getExceptionHandler() == null) {
                                        this.session.getExternalTransactionController().setExceptionHandler(new ExceptionHandler() {
                                           
                                            public Object handleException(RuntimeException exception) {
                                                if (exception instanceof org.eclipse.persistence.exceptions.OptimisticLockException) {
                                                    throw new OptimisticLockException(exception);
                                                } else if (exception instanceof EclipseLinkException) {
View Full Code Here

Examples of org.eclipse.ui.internal.ExceptionHandler

        if (disp == null) {
            return;
        }

        //Initialize an exception handler from the window class.
        ExceptionHandler handler = ExceptionHandler.getInstance();

        for (;;) {
            try {
                if (!disp.readAndDispatch()) {
          break;
        }
            } catch (Throwable e) {//Handle the exception the same way as the workbench
                handler.handleException(e);
                break;
            }

            // Only run the event loop for so long.
            // Otherwise, this would never return if some other thread was
View Full Code Here

Examples of org.jboss.classfilewriter.code.ExceptionHandler

        // create a new interceptor invocation context whenever we invoke a method on a client proxy
        // we use a try-catch block in order to make sure that endInterceptorContext() is invoked regardless whether
        // the method has succeeded or not

        final ExceptionHandler start = b.exceptionBlockStart(Throwable.class.getName());
        b.invokestatic(INTERCEPTION_DECORATION_CONTEXT_CLASS_NAME, START_INTERCEPTOR_CONTEXT_METHOD_NAME, EMPTY_PARENTHESES + DescriptorUtils.VOID_CLASS_DESCRIPTOR);

        if (useCache()) {
            loadCacheableBeanInstance(classMethod.getClassFile(), methodInfo, b);
        } else {
View Full Code Here

Examples of org.jboss.seam.exceptions.ExceptionHandler

   }
  
   @Create
   public void initialize() throws Exception
   {
      ExceptionHandler anyhandler1 = parse("/WEB-INF/exceptions.xml"); //deprecated
      ExceptionHandler anyhandler2 = parse("/WEB-INF/pages.xml");
     
      exceptionHandlers.add( new AnnotationRedirectHandler() );
      exceptionHandlers.add( new AnnotationErrorHandler() );
     
      if ( Init.instance().isDebug() )
View Full Code Here

Examples of org.jboss.virtual.spi.ExceptionHandler

         try
         {
            for (Map.Entry<URL, ExceptionHandler> entry : initializationEntries.entrySet())
            {
               VFS vfs = VFS.getVFS(entry.getKey());
               ExceptionHandler eh = entry.getValue();
               if (eh != null)
                  vfs.setExceptionHandler(eh);
            }
         }
         finally
View Full Code Here

Examples of org.jboss.virtual.spi.ExceptionHandler

         for (Map.Entry<URL, ExceptionHandler> entry : initializedVFSContexts.entrySet())
         {
            URL url = entry.getKey();
            VFS vfs = VFS.getVFS(url);

            ExceptionHandler eh = entry.getValue();
            if (eh != null)
               vfs.setExceptionHandler(eh);

            log.debug("Initialized Virtual File: " + vfs.getRoot());
            refs.put(url, vfs);
View Full Code Here

Examples of org.jboss.virtual.spi.ExceptionHandler

      return aggregatedOptions;
   }

   public ExceptionHandler getExceptionHandler()
   {
      ExceptionHandler eh = super.getExceptionHandler();
      if (eh != null)
         return eh;

      VFSContext peerContext = getPeerContext();
      return peerContext != null ? peerContext.getExceptionHandler() : null;
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.