apply exception handling in category controller