业务异常
try {
。。。
} catch (Exception e) {
throw new BusinessException(AsError.RECORD_APPENDIX_ERROR,e);
}
sql异常
try {
。。。
} catch (SQLException e) {
throw DbUtils.toRuntimeException(e);
}
try {
。。。
} catch (Exception e) {
throw new BusinessException(AsError.RECORD_APPENDIX_ERROR,e);
}
try {
。。。
} catch (SQLException e) {
throw DbUtils.toRuntimeException(e);
}