ServiceException.java 642 B

1234567891011121314151617181920212223242526272829
  1. /**
  2. * Copyright &copy; 2015-2020 <a href="http://www.jeeplus.org/">JeePlus</a> All rights reserved.
  3. */
  4. package com.jeeplus.common.service;
  5. /**
  6. * Service层公用的Exception, 从由Spring管理事务的函数中抛出时会触发事务回滚.
  7. * @author jeeplus
  8. */
  9. public class ServiceException extends RuntimeException {
  10. private static final long serialVersionUID = 1L;
  11. public ServiceException() {
  12. super();
  13. }
  14. public ServiceException(String message) {
  15. super(message);
  16. }
  17. public ServiceException(Throwable cause) {
  18. super(cause);
  19. }
  20. public ServiceException(String message, Throwable cause) {
  21. super(message, cause);
  22. }
  23. }