例外がキャッチされた場合でも、このメソッドが常に返される理由について混乱しています...エラーをログに記録した後に返されるべきではありませんか?
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
}