Package at.reppeitsolutions.formbuilder.model.controller.exceptions

Examples of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException


            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Long id = form.getId();
                if (findForm(id) == null) {
                    throw new NonexistentEntityException("The form with id " + id + " no longer exists.");
                }
            }
            throw ex;
        }
    }
View Full Code Here


            Form form;
            try {
                form = em.getReference(Form.class, id);
                form.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The form with id " + id + " no longer exists.", enfe);
            }
            em.remove(form);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

            }
            String msg = ex.getLocalizedMessage();
            if (msg == null || msg.length() == 0) {
                Long id = formData.getId();
                if (findFormData(id) == null) {
                    throw new NonexistentEntityException("The form with id " + id + " no longer exists.");
                }
            }
            throw ex;
        }
    }
View Full Code Here

            FormData formData;
            try {
                formData = em.getReference(FormData.class, id);
                formData.getId();
            } catch (EntityNotFoundException enfe) {
                throw new NonexistentEntityException("The formData with id " + id + " no longer exists.", enfe);
            }
            em.remove(formData);
            utx.commit();
        } catch (Exception ex) {
            try {
View Full Code Here

TOP

Related Classes of at.reppeitsolutions.formbuilder.model.controller.exceptions.NonexistentEntityException

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.