Package org.apache.camel.component.schematron.exception

Examples of org.apache.camel.component.schematron.exception.SchematronConfigException


    public static SchematronProcessor newScehamtronEngine(final Templates rules) {
        try {
            return new SchematronProcessor(getXMLReader(), rules);
        } catch (Exception e) {
            LOG.error("Failed to parse the configuration file");
            throw new SchematronConfigException(e);
        }
    }
View Full Code Here


            }

            // rules not found in class path nor in file system.
            if (rules == null) {
                logger.error("Schematron rules not found {}", remaining);
                throw new SchematronConfigException("Failed to load rules: " + remaining);
            }
        }

    }
View Full Code Here

                source = new DOMSource(node = result.getNode());
            }
            return fac.newTemplates(new DOMSource(node));
        } catch (Exception e) {
            logger.error(e.getMessage(), e);
            throw new SchematronConfigException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.component.schematron.exception.SchematronConfigException

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.