Examples of FailedToProcessException


Examples of org.openinvoice.ubl4j.core.common.FailedToProcessException

        // try to get the file from the user current directory
        if (FileUtil.isFileInUserCurrentDir(paymentTermsFile)) {
            try {
                paymentTerms.get().append(FileUtil.getFileContentAsString(paymentTermsFile));
            } catch (IOException e) {
                throw new FailedToProcessException(e);
            }
        } else if (FileUtil.isFileInUserHomeDir(paymentTermsFile)) {  // try to get the file from the user home directory
            try {
                paymentTerms.get().append(FileUtil
                        .getFileContentAsString(new File(SystemUtil.USER_HOME_DIR, paymentTermsFile.getName())));
            } catch (IOException e) {
                throw new FailedToProcessException(e);
            }
        } else {
            if (logger.isInfoEnabled()) {
                logger.info("didn't find '" + paymentTermsFile.getName() +
                        "' file; will continue with no payment terms");
View Full Code Here

Examples of org.openinvoice.ubl4j.core.common.FailedToProcessException

    public InvoiceType process(InvoiceType invoiceType, UBL4JConfigurationBean ubl4JConfigurationBean) throws FailedToProcessException {
        try {
            issueTimeType.setValue(CalendarUtil.toCalendar(new LocalTime()));
        } catch (DatatypeConfigurationException e) {
            throw new FailedToProcessException(e);
        }
        invoiceType.setIssueTime(issueTimeType);
        return invoiceType;
    }
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.