Hi Folks. How do you deal with something like:
val price:BigDecimal = try { S.param("price").map(BigDecimal(_))
openOr -1 }
catch { case e: NumberFormatException => -1 }
val tax = try { S.param("tax").map(_.toInt) openOr -1 }
catch { case e: NumberFormatException => -1 }
I would like to get rid of those nasty exceptions.
--
You received this message because you are subscribed to the Google Groups "Lift" group.
To post to this group, send email to
lif...@googlegroups.com.
To unsubscribe from this group, send email to
liftweb+u...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/liftweb?hl=en.