Package org.apache.openjpa.lib.log

Examples of org.apache.openjpa.lib.log.Log.error()


                        if (log.isWarnEnabled())
                            log.warn(warning);
                        break;
                    case WARN_LOG_ERROR:
                        if (log.isErrorEnabled())
                            log.error(warning);
                        break;
                    case WARN_THROW:
                        // just throw it as if it were a SQLException
                        throw warning;
                    case WARN_HANDLE:
View Full Code Here


                        if (fatal)
                            throw re;
                        Log log = (conf == null) ? null : conf
                                .getConfigurationLog();
                        if (log != null && log.isErrorEnabled())
                            log.error(_loc
                                    .get("plugin-creation-exception", val), re);
                        return null;
                    }
                }
            }
View Full Code Here

                ("obj-create", cls).getMessage(), e);
            if (fatal)
                throw re;
            Log log = (conf == null) ? null : conf.getConfigurationLog();
            if (log != null && log.isErrorEnabled())
                log.error(_loc.get("plugin-creation-exception", val), re);
            return null;
        }
    }

    /**
 
View Full Code Here

            if (log.isTraceEnabled())
                log.trace("creating contact");
            try {      
                contact = createContact(myEMF);     
            } catch (Exception e) {
                log.error("Create Contact failed.", e);
                throw e;
            }
           
            try {
                verifyContactValues(myEMF, contact);
View Full Code Here

            }
           
            try {
                verifyContactValues(myEMF, contact);
            } catch (Exception e) {
                log.error("Create Contact verification failed.", e);
                throw e;
                // do not return, as this might be a small bug that we can bypass
            }
           
            if (log.isTraceEnabled())
View Full Code Here

                log.trace("creating annuity holder");
            IAnnuityHolder annuityHolder = null;
            try {
                annuityHolder = createAnnuityHolder(myEMF, contact);          
            } catch (Exception e) {
                log.error("failed to create Annuity Holder Successfully.", e);
                throw e;
            }
           
            try {
                verifyAnnuityHolderValues(myEMF, annuityHolder);
View Full Code Here

                log.trace("creating payor");
            IPayor payor = null;
            try {
                payor = createPayor(myEMF);
            } catch(Exception e) {
                log.error("failed to create payor successfuly.", e);
                throw e;
            }
           
            try {
                verifyPayorValues(myEMF, payor);
View Full Code Here

            }
           
            try {
                verifyPayorValues(myEMF, payor);
            } catch (Exception e) {
                log.error("failed to verify create payor successfuly.", e);
                throw e;
            }
           
            if (log.isTraceEnabled())
                log.trace("creating annuity");
View Full Code Here

            IAnnuity annuity =null;    
            AnnuityType annuityType = AnnuityType.FIXED;
            try {          
                annuity = createAnnuityWithRider(myEMF, annuityType);
            } catch (Exception e) {
                log.error("failed to create annuity successfuly.", e);
                throw e;
            }
           
            try {
                log.trace("verify annuity with rider");
View Full Code Here

           
            try {
                log.trace("verify annuity with rider");
                verifyAnnuityValues(myEMF, annuity, annuityType);
            } catch (Exception e) {
                log.error("failed to verify create annuity successfuly.", e);
                throw e;
            }      
           
            if (log.isTraceEnabled())
                log.trace("upating annuity");
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.