* Fixed wrong method call in generating the filters.
* Added a method to handle exceptions in filter generator.