Examples of ExceptionType


Examples of net.sf.hajdbc.ExceptionType

  }
 
  @Test
  public void getType()
  {
    ExceptionType result = this.factory.getType();
   
    assertSame(ExceptionType.IO, result);
  }
View Full Code Here

Examples of net.sf.hajdbc.ExceptionType

  }
 
  @Test
  public void getType()
  {
    ExceptionType result = this.factory.getType();
   
    assertSame(ExceptionType.XA, result);
  }
View Full Code Here

Examples of net.sf.hajdbc.ExceptionType

  }
 
  @Test
  public void getType()
  {
    ExceptionType result = this.factory.getType();
   
    assertSame(ExceptionType.SQL, result);
  }
View Full Code Here

Examples of net.sf.hajdbc.ExceptionType

          ResultSet resultSet = statement.executeQuery();
          while (resultSet.next())
          {
            Object txId = txIdFactory.deserialize(resultSet.getBytes(1));
            Durability.Phase phase = Durability.Phase.values()[resultSet.getInt(2)];
            ExceptionType type = ExceptionType.values()[resultSet.getInt(3)];
            map.put(new InvocationEventImpl(txId, phase, type), new HashMap<String, InvokerEvent>());
          }
        }
        finally
        {
View Full Code Here

Examples of org.apache.axis2.corba.idl.types.ExceptionType

            }

            if (operation.hasRaises()) {
                List extypes = operation.getRaises();
                for (int j = 0; j < extypes.size(); j++) {
                    ExceptionType extype = (ExceptionType) extypes.get(j);
                    if (processedExs.contains(extype.getName()))
                        continue;
                    processedExs.add(extype.getName());
                    methodSchemaType = createSchemaTypeForMethodPart(extype.getName()+ "Fault");
                    sequence = new XmlSchemaSequence();
                    generateSchemaForType(sequence, extype, extype.getName());
                    methodSchemaType.setParticle(sequence);
                }
            }
            uniqueMethods.put(operationName, operation);
            //create the schema type for the method wrapper
View Full Code Here

Examples of org.apache.camel.model.ExceptionType

            } catch (Throwable e) {
                logger.log("On delivery attempt: " + redeliveryCounter + " caught: " + e, e);
                redeliveryCounter = incrementRedeliveryCounter(exchange, e);


                ExceptionType exceptionPolicy = getExceptionPolicy(exchange, e);
                if (exceptionPolicy != null) {
                    currentRedeliveryPolicy = exceptionPolicy.createRedeliveryPolicy(currentRedeliveryPolicy);
                    Processor processor = exceptionPolicy.getErrorHandler();
                    if (processor != null) {
                        failureProcessor = processor;
                    }
                }
            }
View Full Code Here

Examples of org.apache.camel.model.ExceptionType

     * @param exchange
     * @param exception
     * @return
     */
    protected boolean customProcessorForException(Exchange exchange, Throwable exception) throws Exception {
        ExceptionType policy = getExceptionPolicy(exchange, exception);
        Processor processor = policy.getErrorHandler();
        if (processor != null) {
            processor.process(exchange);
            return true;
        }
        return false;
View Full Code Here

Examples of org.apache.camel.model.ExceptionType

    /**
     * Adds an exception handler route for the given exception types
     */
    public ExceptionType onException(Class... exceptions) {
        ExceptionType last = null;
        for (Class ex : exceptions) {
            last = last == null ? onException(ex) : last.onException(ex);
        }
        return last != null ? last : onException(Exception.class);
    }
View Full Code Here

Examples of org.apache.camel.model.ExceptionType

                logger.log("Failed delivery for exchangeId: " + exchange.getExchangeId() + ". On delivery attempt: " + data.redeliveryCounter + " caught: " + e, e);
                data.redeliveryCounter = incrementRedeliveryCounter(exchange, e);

                // find the error handler to use (if any)
                ExceptionType exceptionPolicy = getExceptionPolicy(exchange, e);
                if (exceptionPolicy != null) {
                    data.currentRedeliveryPolicy = exceptionPolicy.createRedeliveryPolicy(data.currentRedeliveryPolicy);
                    data.handledPredicate = exceptionPolicy.getHandledPolicy();
                    Processor processor = exceptionPolicy.getErrorHandler();
                    if (processor != null) {
                        data.failureProcessor = processor;
                    }
                }
            }
View Full Code Here

Examples of org.apache.camel.model.ExceptionType

        Throwable e = exchange.getException();
        // set the original caused exception
        exchange.setProperty(EXCEPTION_CAUSE_PROPERTY, e);

        // find the error handler to use (if any)
        ExceptionType exceptionPolicy = getExceptionPolicy(exchange, e);
        if (exceptionPolicy != null) {
            data.currentRedeliveryPolicy = exceptionPolicy.createRedeliveryPolicy(exchange.getContext(), data.currentRedeliveryPolicy);
            data.handledPredicate = exceptionPolicy.getHandledPolicy();
            Processor processor = exceptionPolicy.getErrorHandler();
            if (processor != null) {
                data.failureProcessor = processor;
            }
        }
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.