Examples of HandlerException


Examples of co.cask.cdap.common.exception.HandlerException

    Object msg = event.getMessage();

    if (msg instanceof HttpChunk) {
      // This case below should never happen this would mean we get Chunks before HTTPMessage.
      if (chunkSender == null) {
        throw new HandlerException(HttpResponseStatus.INTERNAL_SERVER_ERROR,
                                   "Chunk received and event sender is null");
      }
      chunkSender.send(msg);

    } else if (msg instanceof HttpRequest) {
View Full Code Here

Examples of com.dbxml.labrador.exceptions.HandlerException

      synchronized ( handlerMutex ) {
         for ( int i = 0; i < handlers.length; i++ )
            if ( handlers[i].isRequestValid(request) )
               return handlers[i];
      }
      throw new HandlerException("No Handler for '"+request.getPath()+"'");
   }
View Full Code Here

Examples of com.github.stephenc.javaisotools.sabre.HandlerException

            myInputStream.close();
            myInputStream = null;

        }
        catch (IOException myIOException) {
            throw new HandlerException(myIOException);
        }
        finally {
            if (myInputStream != null) {
                try {
                    myInputStream.close();
View Full Code Here

Examples of com.sun.xml.internal.ws.handler.HandlerException

                Set<QName> headers = ((MessageHandler<?>) handler).getHeaders();
                if (headers != null) {
                    handlerKnownHeaders.addAll(headers);
                }
            }else {
                throw new HandlerException("handler.not.valid.type",
                    handler.getClass());
            }
        }
        return new HandlerConfiguration(roles,portKnownHeaders,handlerChain,
                logicalHandlers,soapHandlers,messageHandlers,handlerKnownHeaders);
View Full Code Here

Examples of com.sun.xml.ws.handler.HandlerException

                Set<QName> headers = ((MessageHandler<?>) handler).getHeaders();
                if (headers != null) {
                    handlerKnownHeaders.addAll(headers);
                }
            }else {
                throw new HandlerException("handler.not.valid.type",
                    handler.getClass());
            }
        }
        return new HandlerConfiguration(roles,portKnownHeaders,handlerChain,
                logicalHandlers,soapHandlers,messageHandlers,handlerKnownHeaders);
View Full Code Here

Examples of net.fortytwo.twitlogic.services.twitter.HandlerException

            } else {
                JSONObject obj;
                try {
                    obj = json.getJSONObject(key);
                } catch (JSONException e) {
                    throw new HandlerException(e);
                }
                if (!rdfizer.isOpen()) {
                    open = false;
                    break;
                }
View Full Code Here

Examples of org.switchyard.HandlerException

            CommonCommonLogger.ROOT_LOGGER.replyArrivedAfterTimeout(exchange.getConsumer().getName().toString());
        } else {
            try {
                _responseQueue.put(exchange);
            } catch (InterruptedException e) {
                throw new HandlerException(e);
            }
        }
    }
View Full Code Here

Examples of org.switchyard.HandlerException

            Object propagateException = _domain.getProperty(Exchange.PROPAGATE_EXCEPTION_ON_IN_ONLY);
            if (propagateException != null && Boolean.parseBoolean(propagateException.toString())
                    && camelExchange.isFailed()) {
                Exception camelException = camelExchange.getException();
                if (camelException != null) {
                    throw new HandlerException(camelException);
                } else {
                    throw CommonCamelMessages.MESSAGES.camelExchangeFailedWithoutAnException("");
                }
            }
        } catch (final CamelExecutionException e) {
            throw new HandlerException(e);
        }
    }
View Full Code Here

Examples of org.switchyard.HandlerException

            if (camelFault != null && declaredFault != null && declaredFault.isAssignableFrom(camelFault.getClass())) {
                Message msg = null;
                try {
                    msg = _messageComposer.compose(bindingData, switchyardExchange);
                } catch (Exception e) {
                    throw new HandlerException(e);
                }
                switchyardExchange.sendFault(msg);
            } else if (camelFault instanceof Throwable) {
                throw new HandlerException(Throwable.class.cast(camelFault));
            } else {
                if (camelFault == null) {
                    throw CommonCamelMessages.MESSAGES.camelExchangeFailedWithoutAnException("");                   
                } else {
                    throw CommonCamelMessages.MESSAGES.camelExchangeFailedWithoutAnException(camelFault.toString());
View Full Code Here

Examples of org.switchyard.HandlerException

    private void sendResponseToSwitchyard(final Exchange switchyardExchange, CamelBindingData bindingData) throws HandlerException {
        Message msg = null;
        try {
            msg = _messageComposer.compose(bindingData, switchyardExchange);
        } catch (Exception e) {
            throw new HandlerException(e);
        }
        switchyardExchange.send(msg);
    }
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.