Examples of BusinessException


Examples of org.conventionsframework.exception.BusinessException

    public static void hasLength(String text, String message) {
        if (!hasLength(text)) {
            if (!hasText(message)) {
                message = "assert.hasLength";
            }
            throw new BusinessException(getMessage(message));
        }
    }
View Full Code Here

Examples of org.jeecgframework.core.common.exception.BusinessException

              try {
              MyBeanUtils.copyBeanNotNull2Bean(sendE,oldE);
              this.saveOrUpdate(oldE);
            } catch (Exception e) {
              e.printStackTrace();
              throw new BusinessException(e.getMessage());
            }
            isUpdate= true;
              break;
            }
          }
View Full Code Here

Examples of org.jeecgframework.web.cgform.exception.BusinessException

      FileOutputStream outputStream = new FileOutputStream(buildFile(parentDir+"/migrateExport.xml", false));
      Writer writer = new OutputStreamWriter(outputStream, "UTF-8");
      writer.write("<?xml version=\"1.0\" encoding=\"UTF-8\" ?>\r\n");
      xStream.toXML(dbTables, writer);
    } catch (Exception e) {
      throw new BusinessException(e.getMessage());
    }
  }
View Full Code Here

Examples of org.mule.example.errorhandler.exceptions.BusinessException

        ObjectToXml trans = new ObjectToXml();
        DefaultMuleException exception = new DefaultMuleException(MessageFactory.createStaticMessage("Some default exception"));
        FatalException fatal = new FatalException(MessageFactory.createStaticMessage("Some fatal exception"),
            new IOException("Some IO exception"));
        BusinessException business = new BusinessException("Some business exception");

        ExceptionBean bean = new ExceptionBean(exception);
        String xml = (String)trans.transform(bean);
        FileUtils.stringToFile(targetDir + "DefaultMuleException.xml", xml);
View Full Code Here

Examples of org.springmodules.xt.examples.domain.BusinessException

* @author Sergio Bossa
*/
public class DomainUtils {
   
    public static BusinessException notificationErrorsToBusinessException(Notification notification) {
        BusinessException ex = new BusinessException();
        for (Message m : notification.getMessages(Message.Type.ERROR)) {
            Error error = new Error(m.getCode(), m.getDefaultMessage(), m.getPropertyName());
            ex.addError(error);
        }
        return ex;
    }
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.