serviceexception.java
来自「SpringSide开源代码」· Java 代码 · 共 29 行
JAVA
29 行
package org.springside.examples.miniweb.service;
/**
* Service层公用的Exception.
* 继承自RuntimeException,会触发Spring的事务管理引起事务回退.
*
* @author calvin
*/
public class ServiceException extends RuntimeException {
private static final long serialVersionUID = 3583566093089790852L;
public ServiceException() {
super();
}
public ServiceException(String message, Throwable cause) {
super(message, cause);
}
public ServiceException(String message) {
super(message);
}
public ServiceException(Throwable cause) {
super(cause);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?