Hi Lahiru!

In my experience, the answer would be "YES".

In our training project, very recently we did introduce some upgrades
to 3 existing advanced mediators in ESB and in situations where
exceptions could occur, we handled it using the "handleException()" function
which was said to be the Standard practice.

Whenever an exception occurs, by using the handleException() function
within a catch block, you can delegate the process of error handling
to a proper fault sequence; i.e. [1] & [2], defined in the ESB
Configuration file.

[1] https://docs.wso2.com/display/ESB460/Error+Handling+and+Error+Codes
[2]
https://docs.wso2.com/display/ESB460/Sample+4%3A+Introduction+to+Error+Handling

Hope this helps!

Cheers!



*Dilan U. Ariyaratne*
Software Engineer
WSO2 Inc. <http://wso2.com/>
Mobile: +94775149066
lean . enterprise . middleware

On Sun, Oct 5, 2014 at 12:20 PM, Lahiru Sandaruwan <[email protected]> wrote:

> Hi guys,
>
> Is $subject the recommended way to handle exceptions in class mediator?
> Refer the sample [1].
>
> Thanks.
> [1] http://wso2.com/library/2898/
>
>
> --
> --
> Lahiru Sandaruwan
> Committer and PMC member, Apache Stratos,
> Senior Software Engineer,
> WSO2 Inc., http://wso2.com
> lean.enterprise.middleware
>
> email: [email protected] cell: (+94) 773 325 954
> blog: http://lahiruwrites.blogspot.com/
> twitter: http://twitter.com/lahirus
> linked-in: http://lk.linkedin.com/pub/lahiru-sandaruwan/16/153/146
>
>
> _______________________________________________
> Dev mailing list
> [email protected]
> http://wso2.org/cgi-bin/mailman/listinfo/dev
>
>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to