Package org.apache.synapse.commons

Examples of org.apache.synapse.commons.SynapseCommonsException


     * @param msg The error message
     * @param e   The exception
     */
    private static void handleException(String msg, Exception e) {
        log.error(msg, e);
        throw new SynapseCommonsException(msg, e);
    }
View Full Code Here


     *
     * @param msg The error message
     */
    private static void handleException(String msg) {
        log.error(msg);
        throw new SynapseCommonsException(msg);
    }
View Full Code Here

                && (property.getAttributeValue(new QName("expression")) == null);
    }

    private static void handleException(String message, Throwable e) {
        log.error(message + e.getMessage());
        throw new SynapseCommonsException(message, e);
    }
View Full Code Here

        throw new SynapseCommonsException(message, e);
    }

    private static void handleException(String message) {
        log.error(message);
        throw new SynapseCommonsException(message);
    }
View Full Code Here

        }
    }

    private static void handleException(String msg) {
        log.error(msg);
        throw new SynapseCommonsException(msg);
    }
View Full Code Here

     * @return DataSource if found , otherwise null
     */
    public DataSource getDataSource(String name) {

        if (name == null || "".equals(name)) {
            throw new SynapseCommonsException("DataSource name cannot be found.", log);
        }

        DataSource result = inMemoryDataSourceRepository.lookUp(name);

        if (result != null) {
View Full Code Here

        }
    }

    private void assertDataSourceInformationNull(DataSourceInformation dataSourceInformation) {
        if (dataSourceInformation == null) {
            throw new SynapseCommonsException("Provided DataSource Information instance is null",
                    log);
        }
    }
View Full Code Here

            try {
                properties.load(in);
            } catch (IOException e) {
                String msg = "Error loading properties from a file at : " + filePath;
                log.error(msg, e);
                throw new SynapseCommonsException(msg, e);
            }
        }
        return properties;
    }
View Full Code Here

        int len;
        try {
            while ((len = in.read(buffer)) >= 0)
                out.write(buffer, 0, len);
        } catch (IOException e) {
            throw new SynapseCommonsException("Error during converting a input stream " +
                    "into a byte array", e, log);
        } finally {
            if (in != null) {
                try {
                    in.close();
View Full Code Here

     *
     * @param msg The error message
     */
    private static void handleException(String msg) {
        log.error(msg);
        throw new SynapseCommonsException(msg);
    }
View Full Code Here

TOP

Related Classes of org.apache.synapse.commons.SynapseCommonsException

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.