try {
//导致异常的代码
} catch (Exception e) {
String errorMessageString = e.getMessage();
//对于唯一约束来说:约束全名为Owner.NAME
String constraintNameString = com.linc.sys.util.Exception.SqlExceptionTool.getConstraintName(errorMessageString);
}
try {
//导致异常的代码
} catch (Exception e) {
String errorMessageString = e.getMessage();
//对于唯一约束来说:约束全名为Owner.NAME
String constraintNameString = com.linc.sys.util.Exception.SqlExceptionTool.getConstraintName(errorMessageString);
}