Package com.skyline.common.exception

Examples of com.skyline.common.exception.BusinessException


  public static HttpServletRequest initRequest(HttpServletRequest request) {
    if (request == null) {
      request = RequestContainer.getRequest();
    }
    if (request == null) {
      throw new BusinessException("传入的request为空,而且当前线程中也不存在HttpServletRequest对象");
    }
    return request;
  }
View Full Code Here


    if (response == null) {
      response = ResponseContainer.getResponse();
    }

    if (response == null) {
      throw new BusinessException("传入的response为空,而且当前线程中也不存在HttpServletResponse对象");
    }
    return response;
  }
View Full Code Here

TOP

Related Classes of com.skyline.common.exception.BusinessException

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.