You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@clerezza.apache.org by Oliver Strässer <ol...@getunik.com> on 2009/12/15 18:46:30 UTC
Scala try & catch
I have a very important question, because i have trouble with user generated content, xhtml and microsoft word copy & paste.
How is the correct syntax for an try and catch contrsuct in your scala, i found some code in the web, but they don't work correct.
i want to do:
{if((res/acp("eMailMessage")).length > 0){
try {
XML.loadString(res/acp("eMailMessage")*)
} case e:Exception => "";
}
--getunik ag-------------------------------------------
oliver straesser oliver.straesser@getunik.com<ma...@getunik.com>
hardturmstrasse 101 fon: +41 (0)44 388 55 88
ch-8005 zuerich fax: +41 (0)44 388 55 89
--aktuelles getunik projekt-------------------------
Engagieren Sie sich für den Klimaschutz! http://youturn.greenpeace.ch<http://youturn.greenpeace.ch/>
--best of swiss web awards 2009------------------
Gold & Silber für Connect2Earth / Bronze für WWF UK
get into conversation - http://www.getunik.com<http://www.getunik.com/>
*****************************************************************
P Bitte drucken Sie dieses E-Mail nur bei Bedarf aus. Die Umwelt dankt es Ihnen.
*****************************************************************