上传代码
This commit is contained in:
29
src/main/java/com/nis/exceptions/ServiceException.java
Normal file
29
src/main/java/com/nis/exceptions/ServiceException.java
Normal file
@@ -0,0 +1,29 @@
|
||||
/**
|
||||
* Copyright © 2012-2014 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
|
||||
*/
|
||||
package com.nis.exceptions;
|
||||
|
||||
/**
|
||||
* Service层公用的Exception, 从由Spring管理事务的函数中抛出时会触发事务回滚.
|
||||
* @author ThinkGem
|
||||
*/
|
||||
public class ServiceException extends RuntimeException {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ServiceException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ServiceException(String message) {
|
||||
super(message);
|
||||
}
|
||||
|
||||
public ServiceException(Throwable cause) {
|
||||
super(cause);
|
||||
}
|
||||
|
||||
public ServiceException(String message, Throwable cause) {
|
||||
super(message, cause);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user