[opencms-dev] catching exceptions...

Nigel Kersten nigel at cofa.unsw.edu.au
Fri Feb 17 09:40:43 CET 2006


So I'm a bit of a java noob... but how do I catch an exception on a  
function like this:

java.util.List supportItems = cmsObject.readResources 
(request.getParameter("category"),CmsResourceFilter.requireType 
(cofaSupportType));

when there are no resources of that type in request.getParameter 
("category").

I've tried using 'try/catch' with it, but that doesn't seem to work.  
How do I trap CmsExceptions like this?

-- 
Nigel Kersten [Senior Technical Officer]
College of Fine Arts, University of NSW, Australia.
CRICOS Provider Code: 00098G





More information about the opencms-dev mailing list