avoid throwing the same type of  new db exception.