我很困惑为什么即使捕获到异常,此方法也总是返回......它不应该在记录错误后返回吗?
private def sendConfCode(sendTo)
{
def confCode = genConfCode()
try
{
mail.sendMessage(sendTo.toString(), "Your confirmation code is", confCode)
//insert confCode into temporary banner table?
}
catch(Exception e)
{
logIt.writeLog(e.message, Priority.ERR)
}
return confCode + " - " + sendTo
}