Hi Chanuka, Thanks for the reply. But what I wanted to know is if catch clause is not available how the exceptions are handled inside that code.
On Wed, Mar 11, 2015 at 3:39 PM, Chanuka Dissanayake <[email protected]> wrote: > Hi Mahesh, > > Jaggery is JavaScript, hence *try, catch *and* finally* blocks can be > used within your code as you usual. Also, passed JavaScript *Error* object > can be used to get a brief information about the error [1]. Also you can > find a sample in [2]. Hope this will help you. > > [1] > http://ruchirawageesha.blogspot.com/2013/04/error-handling-in-jaggery.html > [2] http://jaggeryjs.org/documentation.jag?api=ws > > Regards, > Chanuka. > > On Wed, Mar 11, 2015 at 12:44 PM, Mahesh Chinthaka <[email protected]> > wrote: > >> >> Hi all , >> I have been working on [1] and I found some codes written with try and >> finally blocks without a catch block in the module layer of a jaggery app. >> >> try { >> >> } finally { >> >> } >> >> Is this ok ? >> If so how the errors are caught and thrown, when it comes to exception >> handling ? >> >> [1] - https://wso2.org/jira/browse/APPFAC-2725 >> >> Thoughts are much appreciated. >> Thanks. >> >> -- >> *Mahesh Chinthaka Vidanagama* | Software Engineer >> WSO2, Inc | lean. enterprise. middleware. >> #20, Palm Grove, Colombo 03, Sri Lanka >> Mobile: +94 71 63 63 083 | Work: +94 112 145 345 >> Email: [email protected] | Web: www.wso2.com >> >> _______________________________________________ >> Dev mailing list >> [email protected] >> http://wso2.org/cgi-bin/mailman/listinfo/dev >> >> > > > -- > Chanuka Dissanayake > *Software Engineer | **WSO2 Inc.*; http://wso2.com > > Mobile: +94 71 33 63 596 > Email: [email protected] > -- *Mahesh Chinthaka Vidanagama* | Software Engineer WSO2, Inc | lean. enterprise. middleware. #20, Palm Grove, Colombo 03, Sri Lanka Mobile: +94 71 63 63 083 | Work: +94 112 145 345 Email: [email protected] | Web: www.wso2.com
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
