When the same data is added to the ssh framework, the exception cannot be caught and thrown into the catch.

when adding data in ssh framework, the exception thrown cannot be caught
access class DAO

when the same data is added.
public Integer addDbodler(Dbodler dbodler) {
try {
super.save(dbodler);
return 1;
} catch (Exception e) {
return 0;
}
}

implementation class BIZ

public boolean isAdd(Dbodler dbodler) {
// TODO 
if (dbodlerDao.addDbodler(dbodler)>0) {
return true;
}
return false;
}
Mar.09,2022

you first break the point to see if an exception is thrown and then catch

Menu