JP
10/09/2020, 8:18 PMvar a = -1
newSuspendedTransaction {
try {
a = Users.insert {
it[username] = model.username
} get Users.userId
} catch (e: Exception){
}
}
return a
Any ideas as to how I can return the value from the transaction while also handling error? I've tried handling the error outside the transaction, but for some reason, transactions don't let errors bubble uptapac
10/13/2020, 8:47 AMtry
block like adviced here?