Zoltan Farkas wrote:
Based on current implementation, the following methods I think should throw a exception, something like:
ResourceNotFoundException
do you want this as runtime or catched exception? At the moment we are trying to avoid catched exceptions.

Mark
org.drools.compiler.PackageBuilder.addKnowledgeResource()
org.drools.builder.impl.KnowledgeBuilderImpl.add()
another option might be to verify the validity of a Resource object at creation time and make ResourceFactory factory methods throw ResourceNotFoundException. I believe the case of a "not found resource" the user of the api should be "ecouraged" to handle. Another case that might be needed to be handled could be InvalidResource? Let me know what you guys think Regards --zoly
------------------------------------------------------------------------

_______________________________________________
rules-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-dev

_______________________________________________
rules-dev mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-dev

Reply via email to