Package org.mule.api

Examples of org.mule.api.DefaultMuleException


            {
                props.load(url.openStream());
            }
            catch (IOException e1)
            {
                throw new DefaultMuleException("failed to read channel overrides from URL: " + url.toExternalForm());
            }
        }
        return props;
    }
View Full Code Here


            }
        }

        if (list.isEmpty())
        {
            throw new DefaultMuleException("Received e-mail does not provide sender IP information.");
        }

        Map<String, Object> properties = new HashMap<String, Object>();
        properties.put("from.email.address", from);
View Full Code Here

            {
                filter = new org.mule.routing.filters.ExpressionFilter(s);
            }
            else
            {
                throw new DefaultMuleException("Expression Filter is malformed. IF this is a nested filter make sure each expression is separated by either 'AND' or 'OR'");
            }
        }
        return filter;
    }
View Full Code Here

    {

        SQLException e = new SQLException("SQL error", "bad SQL state", 1234);
        e.setNextException(new SQLException("blah"));

        return new DefaultMuleException(MessageFactory.createStaticMessage("foo"), new DefaultMuleException(
            MessageFactory.createStaticMessage("bar"), e));
    }
View Full Code Here

        {
            muleContext.getWorkManager().scheduleWork(new Heartbeat());
        }
        catch (WorkException e)
        {
            throw new DefaultMuleException(e);
        }
    }
View Full Code Here

            {
                if (e instanceof UnavailableException)
                {
                    Message message = JcaMessages.cannotAllocateManagedInstance();
                    logger.error(message);
                    flowConstruct.getExceptionListener().handleException(new DefaultMuleException(message, e), event);
                }
                else if (e instanceof MessagingException)
                {
                    logger.error("Failed to execute  JCAEndPoint " + e.getMessage(), e);
                    flowConstruct.getExceptionListener().handleException(e, event);
                }
                else
                {
                    flowConstruct.getExceptionListener().handleException(
                        new DefaultMuleException(CoreMessages.eventProcessingFailedFor(flowConstruct.getName()), e), event);
                }
            }
        }
View Full Code Here

                        {
                            files = file.listFiles((FilenameFilter) filter);
                        }
                        else
                        {
                            throw new DefaultMuleException(FileMessages.invalidFilter(filter));
                        }
                    }
                    else
                    {
                        files = file.listFiles();
                    }
                    if (files.length > 0)
                    {
                        result = files[0];
                    }
                }
            }
            return result;
        }
        catch (Exception e)
        {
            throw new DefaultMuleException(FileMessages.errorWhileListingFiles(), e);
        }
    }
View Full Code Here

                rejectMesage = payload + "(rejected!-1)";
                return null;
            }
            catch (Exception e)
            {
                throw new DefaultMuleException(e);
            }
        }
View Full Code Here

                rejectMesage = payload + "(rejected!-2)";
                return null;
            }
            catch (Exception e)
            {
                throw new DefaultMuleException(e);
            }
        }
View Full Code Here

        {
            throw new IllegalArgumentException(CoreMessages.objectIsNull("protocol").toString());
        }
        if (!isTransportSupported(protocol))
        {
            throw new DefaultMuleException(
                CoreMessages.schemeNotCompatibleWithConnector(protocol, AxisConnector.class));
        }
        return transports.get(protocol);
    }
View Full Code Here

TOP

Related Classes of org.mule.api.DefaultMuleException

Copyright © 2018 www.massapicom. 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.