Thanks Sachini.

On Tue, Oct 14, 2014 at 5:10 PM, Sachini Jayasekara <[email protected]>
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 exceptions you can use can be found at [1].
>
> [1]
> https://github.com/wso2-dev/siddhi/tree/master/modules/siddhi-core/src/main/java/org/wso2/siddhi/core/exception
>
> Thanks
>
> On Tue, Oct 14, 2014 at 1:22 PM, Vimalanathan Rajeevan <[email protected]
> > wrote:
>
>> 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 algorithm) as well as to throw Exceptions manually when certain
>> conditions occur in window class.  What is the standard way of handling
>> exceptions in Siddhi windows? I guess, Exceptions should be caught and a
>> general Exception should be thrown. If so, What is the general Exception
>> type should be thrown?
>>
>> [1] - https://redmine.wso2.com/issues/2884
>> --
>> Best Regards,
>> V.Rajeevan
>> Software Engineer,
>> WSO2 Inc. :http://wso2.com
>>
>> Mobile : +94 773090875
>> Email : [email protected]
>>
>> _______________________________________________
>> Dev mailing list
>> [email protected]
>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>
>>
>
>
> --
>
>
>
> *Thanks & Regards,Sachini JayasekaraSoftware Engineer; **WSO2 Inc. *
>
> *lean . enterprise . middleware |  http://wso2.com <http://wso2.com> *
>



-- 
Best Regards,
V.Rajeevan
Software Engineer,
WSO2 Inc. :http://wso2.com

Mobile : +94 773090875
Email : [email protected]
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to