Examples of handleException()


Examples of com.alibaba.druid.pool.DruidPooledConnection.handleException()

        DruidPooledConnection conn = (DruidPooledConnection) dataSource.getConnection();
        conn.close();

        SQLException error = new SQLException();
        try {
            conn.handleException(error);
        } catch (SQLException ex) {
            Assert.assertEquals(error, ex);
        }
    }
View Full Code Here

Examples of com.cloudera.cdk.morphline.base.FaultTolerance.handleException()

 
  @Test
  public void testFaultTolerance() throws Exception {
    FaultTolerance tolerance = new FaultTolerance(true, false);
    tolerance = new FaultTolerance(true, true, IOException.class.getName());
    tolerance.handleException(new IOException(), new Record());
   
    tolerance = new FaultTolerance(true, true, IOException.class.getName());
    tolerance.handleException(new RuntimeException(), new Record());

    tolerance = new FaultTolerance(true, true, IOException.class.getName());
View Full Code Here

Examples of com.hazelcast.util.FutureUtil.ExceptionHandler.handleException()

    @Test(expected = TransactionTimedOutException.class)
    public void testTransactionTimedOutExceptionHandler() throws Exception {
        final ExceptionHandler exceptionHandler = FutureUtil.RETHROW_TRANSACTION_EXCEPTION;
        final Throwable throwable = new TimeoutException();

        exceptionHandler.handleException(throwable);
    }

    private static final class ExceptionCollector implements ExceptionHandler {

        private final List<Throwable> throwables = new ArrayList<Throwable>();
View Full Code Here

Examples of com.iisigroup.cap.operation.OperationStep.handleException()

          long startStep = System.currentTimeMillis();
          result = step.execute(result, params, handler);
          logger.debug("{} cost : {} ms", step.getName(),
              (System.currentTimeMillis() - startStep));
        } catch (CapException e) {
          result = step.handleException(result, e);
          throw e;
        }
        if (result != null) {
          if (OperationStep.NEXT.equals(result.getGoToStep())) {
            step = getNextStep(step.getName());
View Full Code Here

Examples of com.nexirius.framework.htmlview.application.HTMLApplication.handleException()

                        // do not try to create a response, if the command handles the response itself
                        if (command.handlesResponse()) {
                            return;
                        }
                    } catch (Exception e) {
                        application.handleException(sessionVariable, e);
                    }
                }

                if (doSwitchState) {
                    HTMLTransition defaultTransition = application.getDefaultHTMLTransition(sessionVariable.getEvent());
View Full Code Here

Examples of com.proofpoint.http.client.ResponseHandler.handleException()

        balancingHttpClient = createBalancingHttpClient();

        ResponseHandler responseHandler = mock(ResponseHandler.class);
        RuntimeException handlerException = new RuntimeException("test responseHandler exception");
        when(responseHandler.handleException(any(Request.class), any(Exception.class))).thenThrow(handlerException);

        assertHandlerExceptionThrown(responseHandler, handlerException);

        ArgumentCaptor<Exception> captor = ArgumentCaptor.forClass(Exception.class);
        verify(responseHandler).handleException(same(request), captor.capture());
View Full Code Here

Examples of com.sun.enterprise.jbi.serviceengine.bridge.transport.JBIAdapter.handleException()

               
            } catch(Throwable e) {
                logger.log(Level.SEVERE, "serviceengine.error_incoming_request", e);
                ServiceEngineException seException = new ServiceEngineException(e);
                if(jbiAdapter != null) {
                    jbiAdapter.handleException(seException);
                }
            }
        } catch(Exception e) {
            logger.log(Level.SEVERE, "JavaEEServiceEngine : Error processing request" + e  , e);
        }
View Full Code Here

Examples of com.sun.enterprise.jbi.serviceengine.util.soap.MessageExchangeHelper.handleException()

                 response = processEJBRequest(
                         meHelper.denormalizeMessage(true), runtimeEndpointInfo);
            } catch(Throwable e) {
                logger.log(Level.SEVERE, "serviceengine.error_incoming_request", e);
                ServiceEngineException seException = new ServiceEngineException(e);
                meHelper.handleException(seException);
            }
            meHelper.handleResponse(response, false);
        } catch(Exception e) {
            logger.log(Level.SEVERE, "JavaEEServiceEngine : Error processing request" + e  , e);
        }
View Full Code Here

Examples of com.webobjects.appserver.WOApplication.handleException()

            aContext = anApplication.createContextForRequest(aRequest);
          else {
            aContext._putAwakeComponentsToSleep();
          }
          WOSession aSession = aContext._session();
          aResponse = anApplication.handleException(exception, aContext);
          if (aSession != null)
          {
            try
            {
              anApplication.saveSessionForContext(aContext);
View Full Code Here

Examples of it.eng.spago.exception.EMFExceptionHandler.handleException()

              } // if (coordinator == null) else

            } // try
            catch (Exception ex) {
              ServiceIFace service = (coordinator != null)? coordinator.getService() : null;
              exceptionHandler.handleException(ex, service, requestContext);
            } // catch (Exception ex)
           
//            requestContainer.setInternalResponse(null);
//            requestContainer.setAdapterConfig(null);
            // nel caso in cui sia attiva la persistenza della sessione
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.