Re: [Dev] Exception handling in CEP Siddhi Extensions

2014-10-15 Thread Rajeevan Vimalanathan
Thanks Sachini. On Tue, Oct 14, 2014 at 5:10 PM, Sachini Jayasekara sachi...@wso2.com wrote: Hi Vimalanathan, You can throw a QueryCreationException if the erroneous conditions are checked at the time of query creation. Make sure you throw the exception with context information. Some other

[Dev] Exception handling in CEP Siddhi Extensions

2014-10-14 Thread Vimalanathan Rajeevan
We are writing Siddhi extensions for a training project Adding Sketching algorithms for CEP operators [1]. There we are implementing a Siddhi window for Top-K selection algorithm implementation. There was a requirement to handle the Exception thrown by stream-lib (Java library used for Top-K

Re: [Dev] Exception handling in CEP Siddhi Extensions

2014-10-14 Thread Sachini Jayasekara
Hi Vimalanathan, You can throw a QueryCreationException if the erroneous conditions are checked at the time of query creation. Make sure you throw the exception with context information. Some other exceptions you can use can be found at [1]. [1]